Skip to content

Latest commit

 

History

History
42 lines (31 loc) · 1.89 KB

rollback-a-block-version.md

File metadata and controls

42 lines (31 loc) · 1.89 KB
description
Rolling back a live block version removes it from production use and automatically replaces it with the previously released major version.

Rollback a block 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.

Properties

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

Remarks

Only actively live versions of a block can be rolled back.

Example

Accept: application/json
POST: /api/management/projects/movieDb/blocks/movie-listing/actions
{
    "type": "rollback",
    "data": { 
        "version": "2.0"
    }
}

Response message

HTTP status code Reason Response model
202 Accepted Block version
401 Unauthorized Error
404 NotFound Error
422 ValidationError Error
500 InternalServerError Error