description |
---|
Rolling back a live block version removes it from production use and automatically replaces it with the previously released major version. |
POST /api/management/projects/{projectId}/blocks/{blockId}/actions
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.
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 |
Only actively live versions of a block can be rolled back.
Accept: application/json
POST: /api/management/projects/movieDb/blocks/movie-listing/actions
{
"type": "rollback",
"data": {
"version": "2.0"
}
}
HTTP status code | Reason | Response model |
---|---|---|
202 | Accepted | Block version |
401 | Unauthorized | Error |
404 | NotFound | Error |
422 | ValidationError | Error |
500 | InternalServerError | Error |