Skip to main content
Browse Documentation
HTTP - Management

Rollback a block versionBeta

Created by s.horan, last updated 11 Mar 2021

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

NameParameter typeTypeDescriptionExampleRequired
projectIdpathstringThe project identifier found in the project overview screen of the management consolemovieDbtrue

Example

Rollback version 2 to the last live version

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 codeReasonModel
202AcceptedBlock version
401UnauthorizedError
404Project not foundError
422Validation errorError
500Internal server errorError