Process Asset File

contentful.process_asset
ActionBusiness appsconnection required

Calls the Contentful API with the connection's credentials.

Ask Contentful to fetch and process an asset's file for one locale, which it does asynchronously.

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

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

FieldTypeRequiredDefaultConstraintsExample
asset_id
The id of the asset to act on.
stringYes———
locale
The locale code whose file should be processed, such as 'en-US'.
stringYes———
version
The entity's current sys.version. Contentful refuses the write when it is stale.
numberYes—≥ 1—
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
asset_id
The asset whose file is being processed.
string—
locale
The locale whose file is being processed.
string—
status
Always 'processing'; Contentful answers 204.
string—
processed
Always false here — the file is not ready when the call returns.
boolean—
poll_with
The node type to poll for the finished file.
string—
space_id
The space the asset lives in.
string—
environment_id
The environment the asset lives in.
string—
{
  "asset_id": "",
  "environment_id": "",
  "locale": "",
  "poll_with": "",
  "processed": false,
  "space_id": "",
  "status": ""
}

Notes

  • Contentful returns 204 and processes the file afterwards, so this node reports the request as accepted, not the file as ready. Poll contentful.get_asset until fields.file.<locale>.url is set.

See Process Asset File 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.