Skip to main content
Browse Documentation
HTTP - Management

Invoking workflow

Created by Contensis product team, last modified by zengenti on 11 Oct 2021

Entries transition through workflow by invoking events

POST/api/management/projects/{projectId}/entries/{entryId}/workflow/events

Parameters

NameParameter typeTypeFormatDescriptionExampleRequired
projectIdpathstringThe project identifier found in the project overview screen of the management consolemovieDbtrue
entryIdquerystringuuidThe entry identifier as a 128 bit GUIDtrue
triggerbodyobjectworkflow triggerDetails to invoke the workflow event. You can target a language variation by specifying the languagetrue

Example

This example shows how to transition an entry from draft to the next state by invoking the draft.submit event

JSON
POST: /api/management/projects/movieDb/entries/71f73a9b-2a13-4d63-bcc1-e8ee5047b01c/workflow/events { "language": "en-GB", "version": "2.3", "event": "draft.submit", "data": { "message": "Have updated the final paragrah" } }

Responses

HTTP status codeReasonModel
200SuccessEntry
401UnauthorizedError
404Project not foundError
404Entry not foundError
422Validation errorError
500Internal server errorError