Skip to content
Sign in

Create copy

POST/v1/files/copies

Admit a server-side copy of one retained revision as a new file. Finalize it like an upload; no client transfers bytes.

AuthorizationBearer <token>

In: header

Request body

application/json

Response body

application/json

application/json

application/json

curl -X POST 'https://example.com/v1/files/copies' \
  -H 'Content-Type: application/json' \
  -d '{
  "workplaceId": "4989ce91-52f9-461b-87fa-af1f28004fc0",
  "operationId": "3051932a-fdd2-48fa-b330-7e7d41535969",
  "fileId": "a1c6a2ab-4b01-4253-b4c9-70e04b3b48fc",
  "revisionId": "bae12d01-48af-47b3-9304-b09ef0081cd6",
  "target": {
    "name": "string"
  },
  "expiresAt": "2019-08-24T14:15:22Z"
}'
{
  "state": "evidence_expired",
  "uploadId": "ef523ba8-509e-47af-8e2c-5fa751596497"
}