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
workspaceIdstring
The workspace id.
serviceAccountIdstring
The service account id.
Request body
namestring (optional)
Display name.
descriptionstring (optional)
Optional notes.
rolestring (optional)
New workspace role for keys this account owns. One of: viewer, editor, admin.