Update, disable or enable a service account
Changes a service account's name, description, role or disabled state and returns it. A new role, or enabling the account again, must be within your own access. Requires a signed-in session. Disabling denies every request its keys make until it is enabled again.
Required permission
Requires the serviceaccount.manage permission. See Permissions for the roles and API key permissions that include it.
Command line
The orl CLI wraps this endpoint:
orl service-accounts update <service-account-id>apiKeyAuthorizationBearer <token>OpenRelay API key. Send it as Authorization: Bearer or_… (legacy vl_… keys still work).
serviceAccountId*stringapplication/json- body
name?stringlength <= 64description?stringlength <= 256roleId?stringdisabled?booleanUpdated
application/json- response
id*stringname*stringdescription?stringroleId*stringroleName?stringdisabled*booleanA disabled account's keys are denied every request.
keyCount*integerLive keys the account holds.
createdBy*stringcreatedAt*stringcurl -X PATCH 'https://api.openrelay.inc/v1/service-accounts/string' \ -H 'Content-Type: application/json' \ -d '{}'{ "id": "string", "name": "string", "description": "string", "roleId": "string", "roleName": "string", "disabled": true, "keyCount": 0, "createdBy": "string", "createdAt": "string"}Get a service account GET
Returns one service account by id: its name, description, role, whether it is disabled, how many unrevoked API keys it holds, and who created it and when.
Delete a service account and revoke its keys DELETE
Deletes a service account and revokes every API key it holds, returning the revoked key ids. The keys stop working when the account is deleted. Requires a signed-in session.