Service accounts

Update a service account

PATCH/v1/workspaces/{workspaceId}/service-accounts/{serviceAccountId}

Updates the name, description, or role of a service account. Requires an admin key. Omit a field to leave it unchanged.

Authentication

Send your Spark API key with every request. The value is the full bearer token Spark returned when you created the key. See Authentication.

Authorization: Bearer <SPARK_API_KEY>

Path parameters

workspaceId

string

The workspace id.

serviceAccountId

string

The service account id.

Request body

name

string (optional)

Display name.

description

string (optional)

Optional notes.

role

string (optional)

New workspace role for keys this account owns. One of: viewer, editor, admin.

Was this page helpful?