HTTP - Management
Removed from your favourites
Get a block version
Created by s.horan, last modified by zengenti on 17 Jan 2023
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}/branches/{branchId}/versions/{version}
Parameters
Name | Parameter type | Type | Description | Example | Required |
---|---|---|---|---|---|
projectId | path | string | The project identifier found in the project overview screen of the management console | movieDb | true |
blockId | path | string | The block identifier | movie-listing | true |
branchId | path | string | The branch identifier | main | true |
version | path | string | A label of either live or latest, or a valid version number. | 4 | true |
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
Responses
HTTP status code | Reason | Model |
---|---|---|
200 | Success | Block version |
401 | Unauthorized | Error |
422 | Validation error | Error |
500 | Internal server error | Error |