Error
A valid request URL is required to generate request examples{
"results": {
"roleUuid": "<string>",
"userUuid": "<string>",
"scopes": [
"scim:manage"
],
"rotatedAt": "2023-11-07T05:31:56Z",
"lastUsedAt": "2023-11-07T05:31:56Z",
"description": "<string>",
"expiresAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"organizationUuid": "<string>",
"createdBy": {
"lastName": "<string>",
"firstName": "<string>",
"userUuid": "<string>"
},
"createdByUserUuid": "<string>",
"uuid": "<string>"
},
"status": "ok"
}{
"error": {
"name": "<string>",
"statusCode": 123,
"data": "<unknown>",
"message": "<string>"
},
"status": "error"
}Service Accounts
Update service account
Update a service account’s name and permissions in place by UUID, without rotating its token. Requires organization administration permission. Providing projectAccess replaces all project grants. Omit all permission fields to preserve existing permissions. Grants are limited to the caller’s organization permissions.
PATCH
/
api
/
v1
/
service-accounts
/
{tokenUuid}
Error
A valid request URL is required to generate request examples{
"results": {
"roleUuid": "<string>",
"userUuid": "<string>",
"scopes": [
"scim:manage"
],
"rotatedAt": "2023-11-07T05:31:56Z",
"lastUsedAt": "2023-11-07T05:31:56Z",
"description": "<string>",
"expiresAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"organizationUuid": "<string>",
"createdBy": {
"lastName": "<string>",
"firstName": "<string>",
"userUuid": "<string>"
},
"createdByUserUuid": "<string>",
"uuid": "<string>"
},
"status": "ok"
}{
"error": {
"name": "<string>",
"statusCode": 123,
"data": "<unknown>",
"message": "<string>"
},
"status": "error"
}Body
application/json
In-place edit of a service account's name, permissions, and project access,
without rotating its token. description is always applied. The rest is
target-shaped — the payload describes what the SA should become, and the SA
can move between scope modes:
projectAccess(orscopes = [system:member]) → project-scoped: replace its project grants (≥1 required), keepingscopes = [system:member]. Sending an orgroleUuid/ non-memberscopesalongside is rejected.- org
scopes(preset) orroleUuid(custom role) → organization-scoped: set the org permission and drop any project grants. - neither → rename only, preserving the current mode and permission.
The token and expiry are never touched.
Was this page helpful?