Service Accounts
Update a service account.
Enterprise feature
Updates an existing service account identified by its id.
put/api/admin/service-account/{id}
Path parameters
idstring required
Request body
Example request
{
"name": "Service Account 1",
"rootRole": 1
}Response
#/components/schemas/serviceAccountSchema
Example response
{
"id": 54321,
"name": "My Service Account",
"email": "noemail@getunleash.io",
"username": "my-service-account",
"imageUrl": "https://example.com/my-service-account.png",
"inviteLink": "https://example.com/invite-link",
"rootRole": 1,
"createdAt": "2021-01-01T00:00:00.000Z",
"tokens": [
{
"id": 1,
"secret": "user:xyzrandomstring",
"createdAt": "2023-04-19T08:15:14.000Z",
"seenAt": "2023-04-19T08:15:14.000Z",
"userId": 1337,
"description": "user:xyzrandomstring",
"expiresAt": "2023-04-19T08:15:14.000Z"
}
]
}