POST
Duplicate a project

Authorizations

Authorization
string
header
required

A token from POST /token/create, made with your API key pair.

Headers

Idempotency-Key
string

As on POST /projects: a repeat of the call with the same key, project and body answers what the first call did and creates nothing.

Required string length: 1 - 255
Pattern: ^[!-~]+$

Path Parameters

id
string
required

The project id, a lowercase ULID.

Pattern: ^[0-9a-z]{26}$

Body

application/json

Every field is optional and replaces what is copied from the project. config is the project’s and is not taken here.

name
string

Default: Copy of <name>, cut to 255 characters.

Maximum string length: 255
description
string | null

Default: the project’s.

Maximum string length: 2000
buildVersion
string

The build the copy runs on, from GET /build-versions. Default: your account’s default, not the project’s build.

startOnNewFiles
boolean

Default: the project’s. See startOnNewFiles on create.

storage
object

Default: the project’s storage connection, with the default folders for the copy. {"connectionId": null} puts the copy on SyncWords’ storage.

options
object

Instructions for the create (or the duplicate) itself: acted on once, not stored, not returned. Refused on PUT/PATCH.

Response

Created: the copy.

data
object
required