HTTP - Management
Removed from your favourites
Rollback a block version
Created by s.horan, last modified by zengenti on 17 Jan 2023
Rolling back a live block version removes it from production use and automatically replaces it with the previously released major version. This is useful when a recently published block version is not behaving correctly and you want to revert the change quickly.
POST/api/management/projects/{projectId}/blocks/{blockId}/actions
Parameter
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 |
Example
Rollback version 2 to the last live version
JSON
Accept: application/json
POST: /api/management/projects/movieDb/blocks/movie-listing/actions
{
"type": "rollback",
"data": {
"version": "2"
}
}
Remarks
Only actively live versions of a block can be rolled back.
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 |