List Workspace Versions
This endpoint will return a list of all the versions for a given workspace.
GET /openapi/v1/applications/{application_id}/versions
Parameters: The request URL contains the following parameters
Name |
Type |
Description |
---|---|---|
application_id |
string |
The unique identifier for the workspace. |
created_before |
integer |
(optional) For pagination, set to ‘created_at’ of the last version from previous response. |
limit |
integer |
(optional) Max results to return, default is 50. |
Response object: An array of objects with the following attributes:
Attribute |
Type |
Description |
---|---|---|
version |
string |
A version in the form of ‘v10’ or ‘p10’. |
created_at |
integer |
Unix timestamp of when the workspace was created. |
description |
string |
User provided description. |
name |
string |
Displayed name. |
Sample python code
application_id = '5d02b493755f0237a3d6e078'
created_before = 1612325705
limit = 10
resp = restclient.get('/applications/%s/versions?created_before=%s&limit=%s' %
(application_id, created_before, limit))