Skip to main content
Browse Documentation
HTTP - Management

Mark a block version as brokenBeta

Created by s.horan, last updated 11 Mar 2021

Marking a block version as broken ensures that it cannot be released to be used in production. If a released version that is currently live is marked as broken, then it is rolled back.

POST/api/management/projects/{projectId}/blocks/{blockId}/actions

Parameters

NameParameter typeTypeDescriptionExampleRequired
projectIdpathstringThe project identifier found in the project overview screen of the management consolemovieDbtrue
blockIdpathstringThe block identifiermovie-listingtrue

Example

Mark version 2 of the movie-listing block as broken

Accept: application/json
POST: /api/management/projects/movieDb/blocks/movie-listing/actions

{
    "type": "markAsBroken",
    "data": {
        "version": "2"
    }
}

Remarks

Marking a block version as broken will disable it ensure it can't be released

Responses

HTTP status codeReasonModel
202AcceptedBlock version
401UnauthorizedError
404Project not foundError
422Validation errorError
500Internal server errorError