Attach User as an Admin
curl --request POST \
--url https://wksusa1b2c3d.provisionr.app/api/v1/workspace/services/{service}/admins \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'$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' -Method POST -Headers $headers -ContentType 'application/json' -Body '{}'import requests
url = "https://wksusa1b2c3d.provisionr.app/api/v1/workspace/services/{service}/admins"
payload = {}
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({})
};
fetch('https://wksusa1b2c3d.provisionr.app/api/v1/workspace/services/{service}/admins', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));"<string>"{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>",
"errors": {}
}Workspace Service Admins
Attach User as an Admin
POST
/
workspace
/
services
/
{service}
/
admins
Attach User as an Admin
curl --request POST \
--url https://wksusa1b2c3d.provisionr.app/api/v1/workspace/services/{service}/admins \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'$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' -Method POST -Headers $headers -ContentType 'application/json' -Body '{}'import requests
url = "https://wksusa1b2c3d.provisionr.app/api/v1/workspace/services/{service}/admins"
payload = {}
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({})
};
fetch('https://wksusa1b2c3d.provisionr.app/api/v1/workspace/services/{service}/admins', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));"<string>"{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>",
"errors": {}
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Workspace Service ID
Body
application/json
CreateWorkspaceServiceAdminData
admin Can view and manage service account, permissions, tokens, and logs. |
audit Can view service account, permissions, and logs. Cannot view or manage tokens. |
permission Can view service account and make changes to permissions. Cannot view or manage tokens. |
token Can view service account and permissions. Can generate and revoke tokens. |
Available options:
admin, audit, permission, token Response
The response is of type string.
Was this page helpful?