Skip to content
Skip to Content
DevelopersAPI referenceLists

Change a collaborator's role

PATCH
/v1/lists/{id}/members/{memberId}

Owner only.

Authorization

bearer
headerAuthorizationBearer <token>

A personal API key (ga_…), sent as Authorization: Bearer ga_…. A key gets 403 on a resource it has no access to, and on anything that changes data without write access.

Path Parameters

id*string
memberId*string

Request Body

application/json
  1. body
role*string
Value in"viewer""editor"

Response Body

The member

application/json
  1. response
id*string
email*string

The address the invitation was sent to, in lower case

role*string
Value in"viewer""editor"
status*string
Value in"pending""accepted"
created_at*string
Formatdate-time
accepted_at?|
Formatdate-time
Example Request
curl -X PATCH 'https://example.com/v1/lists/string/members/string' \  -H 'Content-Type: application/json' \  -d '{  "role": "viewer"}'
Example Response
{  "id": "string",  "email": "string",  "role": "viewer",  "status": "pending",  "created_at": "2019-08-24T14:15:22Z",  "accepted_at": "2019-08-24T14:15:22Z"}