Skip to main content
POST
Activate saved pending changes

Authorizations

Authorization
string
header
required

Sign in with the existing Occtoo Studio identity and selected organization.

Headers

If-Match
string

The lifecycle's ETag from your last read, quoted as returned (e.g. "3"). Required.

Path Parameters

id
string<uuid>
required

Id of the lifecycle (a UUID).

Body

application/json

Holds an activation of a lifecycle's pending changes.

requestId
string<uuid>
required

Id you generate for this activation (a UUID). A retry with the same requestId and If-Match doesn't activate again; it returns the lifecycle. Reusing it with another lifecycle or If-Match fails with 409.

Response

Accepted

Describes an independent readiness workflow on a card definition.

id
string<uuid>
required

Id of the lifecycle (a UUID). Use with /v1/lifecycles/{id}.

cardDefinitionId
string
required

Raw id of the card definition whose entries the lifecycle assesses (e.g. products).

etag
integer<uint32>
required

Version of the lifecycle, also sent as the ETag header. Send it in If-Match to update, delete or activate the lifecycle.

state
enum<string>
required

Whether the lifecycle is a draft, initializing or ready. See LifecycleState.

Available options:
Draft,
Initializing,
Ready
activeRevision
null | integer<int64>
required

Number of the active revision. Null before the first activation.

pendingDefinition
null | object
required

Saved changes not activated yet. Null when there are none.

createdAt
string<date-time>
required

When the lifecycle was created (UTC).

updatedAt
string<date-time>
required

When the lifecycle last changed (UTC).

updatedBy
string<uuid>
required

Id of the user or application that last changed the lifecycle.