HTTP - Management
Removed from your favourites
Make a block version live
Created by s.horan, last modified by zengenti on 17 Jan 2023
Making a released block version live is an action that routes all traffic to the block version. 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
Parameters
Name | Parameter type | Type | Description | Example | Required |
---|---|---|---|---|---|
projectId | path | string | The project identifier found in the project overview screen of the management console | movieDb | true |
blockId | path | string | The block identifier | movie-listing | true |
Example
Make version 2 of the movie-listing block live
JSON
Accept: application/json
POST: /api/management/projects/movieDb/blocks/movie-listing/actions
{
"type": "makeLive",
"data": {
"version": "2"
}
}
Remarks
If the specified version is either not a released version or is marked as broken, then a validation error is returned.
Responses
HTTP status code | Reason | Model |
---|---|---|
202 | Accepted | Block version |
401 | Unauthorized | Error |
404 | Project not found | Error |
422 | Validation error | Error |
500 | Internal server error | Error |