Skip to main content
Browse Documentation
HTTP - Management

Get a block versionBeta

Created by s.horan, last updated 11 Mar 2021

Gets a specific block version by label or version number.

A label of live will request the version that is currently the live production version. A label of latest will return the last pushed version of the block.

GET/api/management/projects/{projectId}/blocks/{blockId}/{branchId}/versions/{version}

Parameters

NameParameter typeTypeDescriptionExampleRequired
projectIdpathstringThe project identifier found in the project overview screen of the management consolemovieDbtrue
blockIdpathstringThe block identifiermovie-listingtrue
branchIdpathstringThe branch identifiermaintrue
versionpathstringA label of either live or latest, or a valid version number.4true

Examples

Get latest version of a block

Accept: application/json
GET: /api/management/projects/movieDb/blocks/movielisting/main/versions/latest

Get the current live version of a block

Accept: application/json
GET: /api/management/projects/movieDb/blocks/movielisting/main/versions/live

Get version 2 of a block

Accept: application/json
GET: /api/management/projects/movieDb/blocks/movielisting/main/versions/2

Responses

HTTP status codeReasonModel
200SuccessBlock version
401UnauthorizedError
422Validation errorError
500Internal server errorError