Deprecate Admin Role
curl --request PATCH \
--url https://wksusa1b2c3d.provisionr.app/api/v1/workspace/services/{service}/admins/{user}/deprecate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"expires_at": "<string>"
}
'$headers=@{}
$headers.Add("Authorization", "Bearer <token>")
$headers.Add("Content-Type", "application/json")
$response = Invoke-WebRequest -Uri 'https://wksusa1b2c3d.provisionr.app/api/v1/workspace/services/{service}/admins/{user}/deprecate' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
"expires_at": "<string>"
}'import requests
url = "https://wksusa1b2c3d.provisionr.app/api/v1/workspace/services/{service}/admins/{user}/deprecate"
payload = { "expires_at": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({expires_at: '<string>'})
};
fetch('https://wksusa1b2c3d.provisionr.app/api/v1/workspace/services/{service}/admins/{user}/deprecate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));"<string>"{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}Workspace Service Admins
Deprecate Admin Role
This endpoint sets an expiration date for the user’s admin role.
PATCH
/
workspace
/
services
/
{service}
/
admins
/
{user}
/
deprecate
Deprecate Admin Role
curl --request PATCH \
--url https://wksusa1b2c3d.provisionr.app/api/v1/workspace/services/{service}/admins/{user}/deprecate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"expires_at": "<string>"
}
'$headers=@{}
$headers.Add("Authorization", "Bearer <token>")
$headers.Add("Content-Type", "application/json")
$response = Invoke-WebRequest -Uri 'https://wksusa1b2c3d.provisionr.app/api/v1/workspace/services/{service}/admins/{user}/deprecate' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
"expires_at": "<string>"
}'import requests
url = "https://wksusa1b2c3d.provisionr.app/api/v1/workspace/services/{service}/admins/{user}/deprecate"
payload = { "expires_at": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({expires_at: '<string>'})
};
fetch('https://wksusa1b2c3d.provisionr.app/api/v1/workspace/services/{service}/admins/{user}/deprecate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));"<string>"{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Response
The response is of type string.
Was this page helpful?