Edits the account's name, display label and/or color; a rename changes only the name, never the reference, home or launch configuration, and an empty display label or color clears that field.
const url = 'https://example.com/v1/m/sessions/provider-accounts/example';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"accent":"","display_name":"example","name":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://example.com/v1/m/sessions/provider-accounts/example \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "accent": "", "display_name": "example", "name": "example" }'Edits the account’s name, display label and/or color; a rename changes only the name, never the reference, home or launch configuration, and an empty display label or color clears that field.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”Path parameter ref.
Header Parameters
Section titled “ Header Parameters ”Target tenant id; required when the principal can act in more than one tenant.
Request Body required
Section titled “ Request Body required ”object
Display-only accent color. Omit to preserve it; empty clears it; null is refused. Color carries no state or authority.
Display label only. Omit to preserve the label; explicit null is refused. Surrounding whitespace is trimmed; the normalized label is at most 200 UTF-8 bytes and contains no control characters. Empty clears it. The reference, homes and launch configuration do not change. Repeating the current normalized label is a no-op.
Renames the account. Omit to keep the name; null is refused. The name is checked exactly as given: lowercase ASCII, a letter first, then letters, digits or ‘-’, at most 32 characters (422 otherwise). A name already used by another account of the same environment, of any driver or state, answers 409 and is never replaced. The reference, homes and launch configuration do not change. Repeating the current name is a no-op.
Responses
Section titled “ Responses ”OK
object
Example generated
{}Bad request
object
Example generated
{}Unauthenticated
object
Example generated
{}Forbidden
object
Example generated
{}Not found
object
Example generated
{}Conflict / setup required
object
Example generated
{}Invalid account name
object
Example generated
{}Rate limited
object
Example generated
{}