Restore a page template version
Copies the version into the draft. Does not publish it, so the live page is unchanged until you publish.
Requirements: a Pro plan, page templates enabled for the project, and an API key of a project
owner or manager with the page_templates.update scope.
Authorization<token>Format: Authorization: Token {api_key}
id*stringUUID of the version to restore
Version copied into the draft
application/json- response
id?stringUUID of the page template
uuidbody?stringBody of the draft
css?stringCSS of the draft
unpublished_changes?booleanWhether the draft differs from the live version
live_version?|nullThe version links currently show, or null if nothing is published
created_at?stringdate-timeupdated_at?stringdate-timecurl -X POST 'https://dynalinks.app/api/v1/page_template/versions/string/restore'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "body": "string", "css": "string", "unpublished_changes": true, "live_version": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "published_at": "2019-08-24T14:15:22Z", "live": true, "body": "string", "css": "string" }, "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z"}Get a page template version GET
Returns one published version with its body and CSS. **Requirements**: a Pro plan, page templates enabled for the project, and an API key of a project owner or manager with the `page_templates.show` scope.
API reference
Every endpoint of the Dynalinks REST API, with code samples and a "Try it" console.