Skip to main content
Browse Documentation
HTTP - Management

Publish a component

Created by Contensis product team, last updated 22 Jun 2020

Workflow events can be invoked using the following POST request.

POST/api/management/projects/{projectId}/components/{contentTypeId}/workflow/events

Parameters

NameParameter typeTypeFormatDescriptionRequired
componentIdpathstringThe component identifier.true
contentTypeIdpathstringThe content type identifier.true
triggerbodyobjectworkflow triggerDetails to invoke the workflow event. You can target a language variation by specifying the languagetrue

Example

POST: /api/management/projects/movieDb/components/role/workflow/events
{
    "language": "en-GB",
    "version": "2.0",
    "event": "publish"
}

Responses

HTTP status codeReasonModel
200SuccessComponent
401UnauthorizedError
404Project not foundError
404Component not foundError
500Internal server errorError