Update Content Type

contentful.update_content_type
ActionBusiness appsconnection required

Calls the Contentful API with the connection's credentials.

Replace a content type's definition at a known version; the full field list must be sent.

Connection

Required
Yes — the node will not save without one
Auth type
Bearer token
Providers
Contentful
Secret shape
the CMA access token, or {"access_token": "…"}
Config it needs
space_id, environment_id, base_url
Resolved by
config.connection_id, else node.connection_id

Configuration

8 fields, 4 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.

FieldTypeRequiredDefaultConstraintsExample
content_type_id
The id of the content type to act on.
stringYes———
name
The content type's display name.
stringYes———
fields
The complete field definitions as a JSON array; omitted fields are dropped.
arrayYes—array of object—
version
The entity's current sys.version. Contentful refuses the write when it is stale.
numberYes—≥ 1—
description
What this content type is for.
stringNo———
display_field
The id of the field used as an entry's title in the editor.
stringNo———
space_id
The space to act on. Leave blank to use the connection's space.
stringNo———
environment_id
The environment to act on. Leave blank to use the connection's environment, or 'master'.
stringNo———

Output

One shape.

result

FieldTypeExample
sys.id
The content type id.
string—
sys.version
The content type's version after this call.
number—
name
The content type's display name.
string—
displayField
The id of the field used as the entry title.
string—
fields
The content type's field definitions.
array—
{
  "displayField": "",
  "fields": [],
  "name": "",
  "sys": {
    "id": "",
    "version": 0
  }
}

Notes

  • The 'version' is the entity's current sys.version — read it from the entry, asset, content type or locale first; Contentful answers 409 when the version is not the latest.
  • The change reaches entries only after contentful.activate_content_type runs.

See Update Content Type run in a workflow.

In a technical demo we add the Contentful connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.