Skip to main content

Create new revision

Заметка

[Since 2017.02]

A request to create new revision based on current version.

POST /api/v1/files/{fileId}/revisions/create
  1. Path parameters
ParameterDescription
fileIdId of a file
  1. Request parameters
ParameterDescription
titleRevision title
  1. Example request
curl 'http://localhost:8080/api/v1/files/189363765/revisions/create?title=SampleTitle' -i -X POST \
-H 'X-co-auth-token: 0d51fd8f506d0e917e988ce633859458' \
-H 'Content-Type: application/x-www-form-urlencoded'
  1. Example response
HTTP/1.1 202 Accepted
X-co-request-id: 3576526e506e57417961353976516a31