Skip to main content
Browse Documentation
HTTP - Management

Make a block version liveBeta

Created by s.horan, last updated 11 Mar 2021

Making a released block version live is an action that routes all traffic to the block version. The block version gets a Deployment status of live and the previous live version is updated to have a Deployment status of deprecated.

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

Make version 2 of the movie-listing block live

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

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

Remarks

If the specified version is either not a released version or is marked as broken, then a validation error is returned.

Responses

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