Get a version
Returns one version - 404 for any version GET /v2/versions would not list: a story's primary version, a version of a story that is not Live (draft, archived or deleted), or one in a folder the API key's creator cannot open. Returns everything a list row carries, plus data - the version's current variable values, in the same shape POST /v2/versions takes. To change a value without changing the link, send just the fields you want to change to POST /v2/versions/{versionId}; it merges them into these. The link password, if one is set, is never returned.
Request
- Base URLhttps://api.storydoc.com
- AuthHTTP bearer
Path parameters
The ID of the version
Query parameters
optionalContent adds the version's own optional content (see OptionalEntity) - the ids POST /v2/versions/{versionId} accepts in data._optionalContent. It can differ from the story's: a version keeps the content it was made from. Reads the content file, so only ask when needed.
Response
The version
Example response
{
"id": "61b1f40a3a86b7a96d0d8ccc",
"title": "ACME - Proposal",
"storyId": "61b1e50223b713000a41ca74",
"storyTitle": "Proposal template",
"folder": {
"name": "Enterprise",
"path": [
"Sales",
"Enterprise"
],
"members": [
{
"name": "Dana Lee",
"email": "dana@company.com"
}
]
},
"sender": {
"name": "Dana Lee",
"email": "dana@company.com"
},
"shortUrl": "https://view.storydoc.com/4GdDGt",
"data": {
"title": "ACME - Proposal",
"company": "ACME Corporation",
"price": "15,000"
},
"optionalContent": [
{
"id": "Xk2pQ9rLm4Tz7aBcD1eF",
"name": "Pricing",
"type": "slide",
"slideIndex": 4,
"slideTitle": "Pricing",
"rule": {
"variable": "industry",
"value": "Retail"
}
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.