Skip to main content
POST
Execute a confirmed Dev and Prod data assignment change

Authorizations

Authorization
string
header
required

WorkOS access JWT or a user-owned WorkOS API key. User keys are bound to one organization and restricted to their enabled product permissions. Session-only onboarding and session revocation require an interactive access JWT. No cookie session is assumed.

Headers

X-Request-Id
string

Optional caller-provided correlation identifier.

Required string length: 1 - 128
Idempotency-Key
string
required

Identifies one mutation and its canonical request payload.

Required string length: 1 - 128
If-Match
string
required

Use resource_etag from a fresh rollback, promotion, deletion or data-change plan. For a project address change, use etag from project status; an ETag from another representation is not accepted.

Required string length: 3 - 128
X-Confirmation-Token
string
required

Ten-minute token bound to the planned action, project, target resource, and resource ETag. Opaque, single-action token bound to the planned action, project, target resource, and resource ETag.

Required string length: 32 - 4096
Pattern: ^[A-Za-z0-9._~-]+$

Path Parameters

project_id
string
required

Project identifier.

Pattern: ^[0-9A-HJKMNP-TV-Z]{26}$

Body

application/json
change
enum<string>
required

Owner-confirmed assignment change. No application data is copied; physical resources are provisioned lazily.

Available options:
isolate_prod_keeps_data,
isolate_dev_keeps_data,
share_prod_keeps_data,
reset_dev

Response

The mutation was accepted for asynchronous processing.

Durable record returned for an accepted asynchronous mutation. Optional reconciliation is a current observation for queued/running work, separate from immutable terminal state. A completed reconciliation attempt alone does not mean the operation succeeded.

id
string
required
Pattern: ^[0-9A-HJKMNP-TV-Z]{26}$
state
enum<string>
required
Available options:
queued,
running,
succeeded,
failed,
cancelled
created_at
string<date-time>
required
updated_at
string<date-time>
required
blocking_operation_id
string

The active operation holding this queued operation's project mutation claim.

Pattern: ^[0-9A-HJKMNP-TV-Z]{26}$
deployment_id
string

The deployment this operation created (deploy, promotion or rollback), in every state. After a failure, read its diagnostics with deployment logs.

Pattern: ^[0-9A-HJKMNP-TV-Z]{26}$
result
object
error
object
progress
object

Current deployment dependency observation, separate from immutable operation history. Poll the same operation; mail readiness does not mean application activation.

reconciliation
object