Skip to main content

Get a block version

Log in to add to favourites
GET/api/management/projects/{projectId}/blocks/{blockId}/branches/{branchId}/versions/{version}

Parameters

NameParameter typeTypeDescription
projectId(required)pathstringThe project identifier found in the project overview screen of the management console.
blockId(required)pathstringThe block identifier
branchId(required)pathstringThe branch identifier
version(required)pathstringA label of either live or latest, or a valid version number.

Responses

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

Examples

Get latest version of a block

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

Get the current live version of a block

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

Get version 2 of a block

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

Still need help?

If you still need help after reading this article, don't hesitate to reach out to the Contensis community on Slack or raise a support ticket to get help from our team.
New support request