Skip to main content
POST
Save a lifecycle draft

Authorizations

Authorization
string
header
required

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

Path Parameters

cardId
string
required

Raw id of the card definition (e.g. products).

Body

application/json

Holds a new lifecycle draft.

definition
object
required

Definition of the lifecycle, saved as pending changes.

Response

Created

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.