POST/api/admin/promote/{uid}Admin

Promote a user to administrator

Grants the platform administrator flag to the user with the given uid.

operationId post_api_admin_promote_uidAdministration

Authentication & permissionsAdmin

Platform administrators only

Accepted credentials
Who may call
Platform administrators only

Path parameters

NameTypeDescription
uid*string (uuid)

uid of the user to promote

Responses

application/json
ResourceCreationResponse
PropertyTypeDescription
success*true
message*string
resource_id*string

Identifier of the created / affected resource

JSONExample
"success"true
"message""string"
"resource_id""string"

Example request

bashcurl
curl -X POST 'https://auth.schemavaults.com/api/admin/promote/<uid>' \
  -b 'refresh_token_<auth_server_app_id>=<value>'