service-accounts

Set Role

Changes the service account's role. Fenced exactly like create: the new role may never exceed the caller's own Permissions.

put/service-accounts/{id}/role

Request

  • Base URL: https://api.instruxi.dev/api/v1/enforcer
  • URL: https://api.instruxi.dev/api/v1/enforcer/service-accounts/{id}/role
  • Auth: one of:
    • API key in header Authorization
    • API key in header X-API-Key

Path parameters

idstring required

id

Request body

role_idstring uuid

Response

OK

successboolean

Example response

{
  "success": true
}

Changes

No recorded changes to this operation across all 1 revision of this API.