Create Chain

Creates a Chain in a project from existing workers of that project or workers without a project. A worker can belong to at most one Chain.

Security: Requires Platform Admin, or Project Admin of the Chain's project.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
required

Chain key

string
string
required

Project of the Chain. Workers must belong to this project or to no project; only Platform Admins may add workers without a project.

workers
array of strings, unique
required
length ≥ 1

Keys of existing workers, without duplicates

workers*
Responses

400

Bad Request - Invalid input (including a missing projectKey), a worker does not exist, a worker is in another project, or the project does not exist

401

Bad Credentials - Invalid credentials

403

Permission Denied - Insufficient permissions, or a Project Admin adding a worker without a project

409

Conflict - Chain already exists, or a worker already belongs to a Chain. Also returned, and safe to retry shortly, when a worker has no internal key yet (it is still being migrated)

Language
Credentials
Bearer
URL
LoadingLoading…
Response
Choose an example:
application/json