Members

Update a member role

PATCH/v1/workspaces/{workspaceId}/members/{memberId}

Changes a member's role. Requires an admin key. The last admin cannot become a viewer or editor.

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.

memberId

string

The membership id.

Request body

role

string

New role for the member. One of: viewer, editor, admin.

Was this page helpful?