Skip to main content
POST
Save a card definition draft

Authorizations

Authorization
string
header
required

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

Body

application/json

Holds a new card definition draft.

id
string
required

Starts with a lowercase letter, then letters and digits. Immutable.

name
string
required

Name of the card definition, shown in Studio.

description
null | string

Free-text note about the card definition.

tags
null | string[]

Labels for grouping and filtering card definitions.

displayOptions
null | object

Card properties that present each card, keyed by role (name, description or image); each value is a card property id.

propertyGroups
null | object[]

Groups that arrange the card definition's card properties in Studio. A card property can be in one group only.

properties
null | object[]

First card properties. They wait as pending changes until the first activation.

Response

Created

Shapes the entries of one or more sources into cards: picks source properties as card properties and sets the data type each exposes.

id
string
required

Raw id of the card definition (e.g. products). Use with /v1/card-definitions/{cardId}.

name
string
required

Name of the card definition, shown in Studio.

description
null | string
required

Free-text note about the card definition.

tags
string[]
required

Labels for grouping and filtering card definitions.

status
enum<string>
required

State of the card definition. See CardDefinitionStatus.

Available options:
Draft,
Active,
Updating,
Archived,
Archiving,
PendingChanges
etag
required

Version of the card definition. Send it quoted in If-Match (e.g. "3").

displayOptions
object
required

Card properties that present each card, keyed by role (name, description or image); each value is a card property id.

propertyGroups
object[]
required

Groups that arrange the card definition's card properties in Studio. A card property can be in one group only.

properties
object[]
required

Active card properties. Empty until the first activation completes.

pendingChanges
null | object
required

Saved card property changes that aren't active yet. Null when there are none.

createdAt
string<date-time>
required

When the card definition was created (UTC).

updatedAt
string<date-time>
required

When the card definition last changed (UTC).