Promote a version
curl --request POST \
--url https://api.arg.ai/api/sites/{id}/promote \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"version_id": "<string>"
}
'import requests
url = "https://api.arg.ai/api/sites/{id}/promote"
payload = { "version_id": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({version_id: '<string>'})
};
fetch('https://api.arg.ai/api/sites/{id}/promote', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{}{
"detail": "<string>"
}Sites
Promote a version
Point the site at a built version. Use it to go live and to roll back.
POST
/
api
/
sites
/
{id}
/
promote
Promote a version
curl --request POST \
--url https://api.arg.ai/api/sites/{id}/promote \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"version_id": "<string>"
}
'import requests
url = "https://api.arg.ai/api/sites/{id}/promote"
payload = { "version_id": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({version_id: '<string>'})
};
fetch('https://api.arg.ai/api/sites/{id}/promote', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{}{
"detail": "<string>"
}Authorizations
bearerAuthapiKeyAuth
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Body
application/json
Version to serve.
Response
Successful response
The response is of type object.