Pull Workspace Version
curl --request POST \
--url https://api.studio.prisme.ai/v2/workspaces/{workspaceId}/versions/{versionId}/pull \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"repository": {
"id": "<string>"
},
"discardLocalChanges": false
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({repository: {id: '<string>'}, discardLocalChanges: false})
};
fetch('https://api.studio.prisme.ai/v2/workspaces/{workspaceId}/versions/{versionId}/pull', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.studio.prisme.ai/v2/workspaces/{workspaceId}/versions/{versionId}/pull"
payload = {
"repository": { "id": "<string>" },
"discardLocalChanges": False
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"processing": true,
"message": "<string>"
}{
"error": "BadParameters",
"message": "<string>",
"details": "<unknown>"
}{
"error": "AuthenticationError",
"message": "Unauthenticated"
}{
"error": "ForbiddenError",
"message": "Forbidden"
}{
"error": "ObjectNotFound",
"message": "<string>"
}Prisme.ai Workspaces
Pull Workspace Version
Pull a workspace version from a remote repository or rollback from current repository
POST
/
v2
/
workspaces
/
{workspaceId}
/
versions
/
{versionId}
/
pull
Pull Workspace Version
curl --request POST \
--url https://api.studio.prisme.ai/v2/workspaces/{workspaceId}/versions/{versionId}/pull \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"repository": {
"id": "<string>"
},
"discardLocalChanges": false
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({repository: {id: '<string>'}, discardLocalChanges: false})
};
fetch('https://api.studio.prisme.ai/v2/workspaces/{workspaceId}/versions/{versionId}/pull', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.studio.prisme.ai/v2/workspaces/{workspaceId}/versions/{versionId}/pull"
payload = {
"repository": { "id": "<string>" },
"discardLocalChanges": False
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"processing": true,
"message": "<string>"
}{
"error": "BadParameters",
"message": "<string>",
"details": "<unknown>"
}{
"error": "AuthenticationError",
"message": "Unauthenticated"
}{
"error": "ForbiddenError",
"message": "Forbidden"
}{
"error": "ObjectNotFound",
"message": "<string>"
}Authorizations
BearerAuthOrgApiKeyAuthBearerAuth & OrgApiKeyAuth
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Timeout (seconds)
Body
application/json
Was this page helpful?