Skip to main content
POST
/
workspace
/
services
/
{service}
/
admins
Attach User as an Admin
curl --request POST \
  --url https://wks-a1b2c3d4.provisionr.io/api/v1/workspace/services/{service}/admins \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "admin_role": "admin"
}
'
{
  "id": "<string>",
  "state": "<string>",
  "role": "<string>",
  "timestamp": [
    "<string>"
  ],
  "_embedded": [
    "<string>"
  ],
  "_links": [
    "<string>"
  ]
}

Documentation Index

Fetch the complete documentation index at: https://docs.provisionr.io/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

service
string
required

Workspace Service ID

Body

application/json

CreateWorkspaceServiceAdminData

admin_role
enum<string>
required
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

WorkspaceServiceAdminDetailedResponse

id
string
required
Example:

"wssaa_01hq8xyzabc123def456ghi789"

state
string
required
role
string
required
timestamp
string[]
required
_embedded
string[]
required