{"_id":"59de6011debd1200240f690e","version":{"_id":"59de6011debd1200240f68ee","__v":3,"project":"59de6011debd1200240f68ec","createdAt":"2016-06-20T18:15:42.514Z","releaseDate":"2016-06-20T18:15:42.514Z","categories":["59de6011debd1200240f68fb","59de6011debd1200240f68fa","59de6011debd1200240f68fc","59de6011debd1200240f68f8","59de6011debd1200240f68f7","59de6011debd1200240f68f9","59de6011debd1200240f68fd","59de6011debd1200240f68fe","59de6011debd1200240f68ff","5a8bfb99f4146e00449cec47","5a8bfcf2e86f530012159bb2","5cd4c29c6ea1040056ec0f55"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"2.0.0","version":"2.0"},"project":"59de6011debd1200240f68ec","parentDoc":null,"user":"547504ed59fade080004cb8b","category":{"_id":"59de6011debd1200240f68f9","__v":0,"project":"59de6011debd1200240f68ec","version":"59de6011debd1200240f68ee","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2016-05-24T19:12:00.251Z","from_sync":false,"order":8,"slug":"exports","title":"Export Management"},"__v":3,"githubsync":"","updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-06-13T23:11:09.246Z","link_external":false,"link_url":"","sync_unique":"","hidden":false,"api":{"method":"post","results":{"codes":[{"name":"","status":200,"language":"json","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}"}]},"settings":"","examples":{"codes":[{"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":"curl"},{"code":"https://www.onboardiq.com/api/v2/timestamped_exports?api_token=secret-api-token&template_id=040560d0-ae53-4b34-989e-004cc7aaba1b","language":"text"}]},"auth":"required","params":[{"_id":"575f3e9faf3e090e00107e6d","ref":"","in":"body","required":false,"desc":"Required if api_token is not passed in header","default":"secret-api-token","type":"string","name":"api_token"},{"_id":"57684991d98cfd0e00676138","ref":"","in":"body","required":true,"desc":"ID of the source template for this export","default":"040560d0-ae53-4b34-989e-004cc7aaba1b","type":"string","name":"template_id"},{"_id":"5873ddb49cd5c725004f674c","ref":"","in":"body","required":false,"desc":"Export format (\"csv\" or \"xlsx\")","default":"csv","type":"string","name":"output"}],"url":"/timestamped_exports"},"isReference":false,"order":0,"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\"","excerpt":"","slug":"create-timestamped-export","type":"endpoint","title":"Create Timestamped Export"}

postCreate Timestamped Export


Definition

{{ api_url }}{{ page_api_url }}

Parameters

Body Params

api_token:
stringsecret-api-token
Required if api_token is not passed in header
template_id:
required
string040560d0-ae53-4b34-989e-004cc7aaba1b
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 }}