Update an instance service account
PATCH
/api/v4/service_accounts/{user_id}
Updates a specified instance service account.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”user_id
required
integer
The ID of the service account user
Request Body
Section titled “Request Body”Media typeapplication/json
object
name
Name of the user
string
username
Username of the user
string
email
Custom email address for the user
string
Examplegenerated
{ "name": "example", "username": "example", "email": "example"}Responses
Section titled “Responses”OK
Media typeapplication/json
object
id
integer format: int64
username
string
public_email
string
name
string
email
string
unconfirmed_email
string
Example
{ "id": 1, "username": "admin", "public_email": "john@example.com", "name": "Administrator", "email": "service_account@example.com", "unconfirmed_email": "updated_service_account@example.com"}400 Bad request
401 Unauthorized
403 Forbidden
404 Not found