service_accounts
Update service account
Required permissions (See note in the introduction for an explanation): action: serviceaccounts:write scope: serviceaccounts:id:1 (single service account)
patch/serviceaccounts/{serviceAccountId}
Request
- Base URL/api (relative, and the document was published on a file host, not at the API’s origin)
- URL/api/serviceaccounts/{serviceAccountId}
- Auth
- HTTP basic
- or API key in header Authorization
Path parameters
serviceAccountIdinteger required
Request body
Response
(empty)
Example response
{
"serviceaccount": {
"avatarUrl": "/avatar/8ea890a677d6a223c591a1beea6ea9d2",
"createdAt": "2022-03-21T14:35:33Z",
"id": 2,
"login": "sa-grafana",
"name": "test",
"orgId": 1,
"role": "Editor",
"teams": [],
"updatedAt": "2022-03-21T14:35:33Z"
}
}Changes
No recorded changes to this operation across all 2 revisions of this API.