Docs
Skip to Content
API referenceName a revision of a post
cmsPosts

Name a revision of a post

Sets the revision's `name` and `note`.

PATCH
/v1/cms/projects/{projectId}/posts/{postId}/revisions/{revisionId}

Authorization

apiKey
headerAuthorizationBearer <token>

A project API key: pk_... (public, read published content) or sk_... (secret, the actions it was given).

Path Parameters

projectId*string
postId*string
revisionId*string

Query Parameters

locale?string

Language tag of the row to read (fr, fr-CA). Defaults to the site's language.

Request Body

application/json
  1. body
name*|

Up to 80 characters; null removes the name and note.

note?|

Up to 500 characters.

[key: string]?unknown

Response Body

The revision.

application/json
  1. response
id*string
reason*string
Value in"autosave""manual""publish""update""restore""schedule""unpublish"
createdAt*string
name*string|null
note*string|null
restoredFrom*string|null
contributors*array<>
Example Request
curl -X PATCH 'https://api.tintage.com/v1/cms/projects/string/posts/string/revisions/string' \  -H 'Content-Type: application/json' \  -d '{  "name": "string",  "property1": null,  "property2": null}'
Example Response
{  "id": "string",  "reason": "autosave",  "createdAt": "string",  "name": "string",  "note": "string",  "restoredFrom": "string",  "contributors": [    {      "type": "user",      "name": "string",      "author": "string"    }  ]}
Was this page helpful?

We use essential cookies to keep you signed in. Optional cookies stay off unless you accept them. Cookie details.