Files

Duplicate a file

Changed on

Creates a separate copy of a file, using its current published version or an earlier version you choose. All body fields are optional — send {} to use defaults. revisionId defaults to the source file's latest published revision; name defaults to "Copy of <original>"; folderId defaults to the source file's folder.

post/files/{fileId}/duplicate

Request

  • Base URL
    https://public-api.process.st/api/v1.1
  • URL
    https://public-api.process.st/api/v1.1/files/{fileId}/duplicate
  • Auth
    • API key in header X-API-Key
    • or HTTP bearer

Path parameters

fileIdstring required

File ID

Request body

revisionIdstring
namestring

Display name.

folderIdstring

The ID of the Folder.

Response

Example response

{
  "data": {
    "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