younifyd
Menu

Promote Content Version

Promote a Content Version

POST/versions/{id}/promote

Use it in a workflow

  1. Add a step and choose the Directus connector.
  2. Pick the Promote Content Version action (under Versions).
  3. Fill in the fields below, then reference the result from later steps as {{promoteContentVersion.response.data}}.

Request

Path parameters

idstringrequired

Unique identifier for the object.

Request body

Enter the body as JSON in the step's Body field.

mainHashstring

Hash of the main version of the item to be promoted.

fieldsstring

Optional array of field names of which the values are to be promoted.

json
{
  "mainHash": "string",
  "fields": "string"
}

Response

Returns 200 with a string. Read it in later steps with {{promoteContentVersion.response.data.<field>}}.

Need more? See the Directus guide for connection setup and behaviour shared by every action.