description |
---|
Publishing a released block version is an action that makes the specified block version live. |
Publishing a released block version is an action that makes the specified block version live. The block version gets a Deployment status of live and the previous live version is updated to have a Deployment status of deprecated.
POST /api/management/projects/{projectId}/blocks/{blockId}/actions
Name | Parameter type | Type | Format | Description |
---|---|---|---|---|
projectId | path | string | The project identifier, e.g. "movieDb". Found in the project overview screen of the management console |
If the specified version is either not a released version or marked as broken, then a validation error is returned.
Accept: application/json
POST: /api/management/projects/movieDb/blocks/movie-listing/actions
{
"type": "makeLive",
"data": {
"version": "2.0"
}
}
HTTP status code | Reason | Response model |
---|---|---|
202 | Accepted | Block version |
401 | Unauthorized | Error |
404 | ProjectNotFound | Error |
422 | ValidationError | Error |
500 | InternalServerError | Error |