Skip to main content
PATCH
Save or discard 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 pending changes to save or discard.

pendingDefinition
null | object
required

Definition to save as pending changes, or null to discard them.

Response

OK

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.