File Revisions
Create a file revision
Changed onStarts a draft with a replacement document. First call createFileUpload, upload your document to the returned URL, and pass its fileUploadId here. The published document stays available until you publish the draft. A file can have only one draft at a time.
post/files/{fileId}/revisions
Request
- Base URLhttps://public-api.process.st/api/v1.1
- URLhttps://public-api.process.st/api/v1.1/files/{fileId}/revisions
- Auth
- API key in header X-API-Key
- or HTTP bearer
Path parameters
fileIdstring required
File ID
Request body
Response
Example response
{
"data": {
"id": "jkBnUsJVEmABoZxtcCRyeQ",
"createdBy": {
"id": "paiZa0_oyxEBoZxtatp33g",
"email": "jane.doe@example.com",
"username": "Jane Doe"
},
"updatedBy": {
"id": "paiZa0_oyxEBoZxtatp33g",
"email": "jane.doe@example.com",
"username": "Jane Doe"
},
"links": [
{
"href": "https://api.process.st/api/v1.1/resource/XXX"
}
]
},
"links": [
{
"href": "https://api.process.st/api/v1.1/resource/XXX"
}
]
}Changes
- breaking
added required request body
- info
added the non-success response with the status
- breaking
- info
endpoint added
- info