{"metadata":{"image":[],"title":"","description":""},"api":{"url":"/timestamped_exports","auth":"required","method":"post","results":{"codes":[{"code":"{\n  \"id\": \"00afbcf2-fb20-4f75-941b-eda1b7512efa\",\n  \"created_at\": \"2016-04-26T09:14:39.000-07:00\",\n  \"updated_at\": \"2016-04-26T09:14:39.000-07:00\",\n  \"state\": \"idle\",\n  \"template\": {\n    \"id\": \"040560d0-ae53-4b34-989e-004cc7aaba1b\",\n    \"title\": \"Chief Factors Developer\"\n  },\n  \"file_url\": \"https://aaa.bbbb/export.csv\"\n}","language":"json","status":200,"name":""}]},"settings":"","examples":{"codes":[{"language":"curl","code":"curl -X POST -H 'Content-Type: application/json' -d '{\"api_token\":\"secret-api-token\",\"template_id\":\"040560d0-ae53-4b34-989e-004cc7aaba1b\", \"output\":\"csv\"}' 'https://api.fountain.com/v2/timestamped_exports'\n\n"},{"language":"text","code":"https://www.onboardiq.com/api/v2/timestamped_exports?api_token=secret-api-token&template_id=040560d0-ae53-4b34-989e-004cc7aaba1b"}]},"params":[{"name":"api_token","type":"string","default":"secret-api-token","desc":"Required if api_token is not passed in header","required":false,"in":"query","ref":"","_id":"5ea0ff3db11ed60057e4f1ee"},{"name":"template_id","type":"string","default":"040560d0-ae53-4b34-989e-004cc7aab111","desc":"ID of the source template for this export","required":true,"in":"query","ref":"","_id":"5ea0ff3db11ed60057e4f1ed"},{"name":"output","type":"string","default":"csv","desc":"Export format (\"csv\" or \"xlsx\")","required":false,"in":"query","ref":"","_id":"5ea0ff3db11ed60057e4f1ec"}]},"next":{"description":"","pages":[]},"title":"Create Timestamped Export","type":"endpoint","slug":"create-timestamped-export","excerpt":"","body":"# Create timestamped exports\nCreate a timestamped export based on the given template_id. To find a template_id, use List Export Templates.\n\nThe 'file_url' will expire 1 week from creation - this is to ensure your exports are up to date!\n[block:callout]\n{\n  \"type\": \"warning\",\n  \"title\": \"NOTE: id vs. template_id\",\n  \"body\": \"The 'id' refers to the id of this export, whereas the 'template_id' refers to the source template. You'll use the make sure to use 'id' to GET the export that you've created.\"\n}\n[/block]\n# Response Schema\n\n*   id\n    *   Required: no\n    *   Type: string\n    *   Example: \"00afbcf2-fb20-4f75-941b-eda1b7512efa\"\n*   created_at\n    *   Required: no\n    *   Type: string\n    *   Format: date-time\n    *   Example: \"2016-04-26T09:14:39.000-07:00\"\n*   updated_at\n    *   Required: no\n    *   Type: string\n    *   Format: date-time\n    *   Example: \"2016-04-26T09:14:39.000-07:00\"\n*   state\n    *   Required: no\n    *   Type: string\n    *   Example: \"idle\"\n*   template\n    *   Required: no\n    *   id\n        *   Required: no\n        *   Type: string\n        *   Example: \"040560d0-ae53-4b34-989e-004cc7aaba1b\"\n    *   title\n        *   Required: no\n        *   Type: string\n        *   Example: \"Chief Factors Developer\"\n*   file_url\n    *   Required: no\n    *   Type: string\n    *   Example: \"https://example.com/export.csv\"","updates":[],"order":0,"isReference":false,"hidden":false,"sync_unique":"","link_url":"","link_external":false,"_id":"59de6011debd1200240f690e","version":{"version":"2.0","version_clean":"2.0.0","codename":"","is_stable":true,"is_beta":false,"is_hidden":false,"is_deprecated":false,"categories":["59de6011debd1200240f68fb","59de6011debd1200240f68fa","59de6011debd1200240f68fc","59de6011debd1200240f68f8","59de6011debd1200240f68f7","59de6011debd1200240f68f9","59de6011debd1200240f68fd","59de6011debd1200240f68fe","59de6011debd1200240f68ff","5a8bfb99f4146e00449cec47","5a8bfcf2e86f530012159bb2","5cd4c29c6ea1040056ec0f55"],"_id":"59de6011debd1200240f68ee","__v":3,"project":"59de6011debd1200240f68ec","createdAt":"2016-06-20T18:15:42.514Z","releaseDate":"2016-06-20T18:15:42.514Z"},"project":"59de6011debd1200240f68ec","parentDoc":null,"user":"547504ed59fade080004cb8b","category":{"sync":{"isSync":false,"url":""},"pages":[],"title":"Export Management","slug":"exports","order":8,"from_sync":false,"reference":false,"_id":"59de6011debd1200240f68f9","__v":0,"project":"59de6011debd1200240f68ec","version":"59de6011debd1200240f68ee","createdAt":"2016-05-24T19:12:00.251Z"},"__v":8,"createdAt":"2016-06-13T23:11:09.246Z","githubsync":""}

postCreate Timestamped Export


Definition

{{ api_url }}{{ page_api_url }}

Parameters

Query Params

api_token:
stringsecret-api-token
Required if api_token is not passed in header
template_id:
required
string040560d0-ae53-4b34-989e-004cc7aab111
ID of the source template for this export
output:
stringcsv
Export format ("csv" or "xlsx")

Examples


Result Format


Documentation

# Create timestamped exports Create a timestamped export based on the given template_id. To find a template_id, use List Export Templates. The 'file_url' will expire 1 week from creation - this is to ensure your exports are up to date! [block:callout] { "type": "warning", "title": "NOTE: id vs. template_id", "body": "The 'id' refers to the id of this export, whereas the 'template_id' refers to the source template. You'll use the make sure to use 'id' to GET the export that you've created." } [/block] # Response Schema * id * Required: no * Type: string * Example: "00afbcf2-fb20-4f75-941b-eda1b7512efa" * created_at * Required: no * Type: string * Format: date-time * Example: "2016-04-26T09:14:39.000-07:00" * updated_at * Required: no * Type: string * Format: date-time * Example: "2016-04-26T09:14:39.000-07:00" * state * Required: no * Type: string * Example: "idle" * template * Required: no * id * Required: no * Type: string * Example: "040560d0-ae53-4b34-989e-004cc7aaba1b" * title * Required: no * Type: string * Example: "Chief Factors Developer" * file_url * Required: no * Type: string * Example: "https://example.com/export.csv"

User Information

Try It Out

post
{{ tryResults.results }}
Method{{ tryResults.method }}
Request Headers
{{ tryResults.requestHeaders }}
URL{{ tryResults.url }}
Request Data
{{ tryResults.data }}
Status
Response Headers
{{ tryResults.responseHeaders }}