Skip to main content
Browse Documentation
HTTP - Management

Mark a block version as broken

Created by s.horan, last modified by zengenti on 17 Jan 2023

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

JSON
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 and ensure it can't be released

Responses

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