DevelopersAPI referenceLists
Rename a list
PATCH
Owner only (403 for a collaborator).
bearerheader
AuthorizationBearer <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.
id*stringapplication/json- body
name*stringLength
length <= 80The list
application/json- response
id*stringname*stringitem_count*integerLive items in the list, from every member
role*stringThe caller's role in the list
Value in
"owner""editor""viewer"owner_email?stringWho shared the list. Not present on the caller's own lists
member_count?integerCollaborators and pending invitations. Owner only
public_token?stringSecret in the public link. Owner only, and only while the link is on
public_url?stringThe web page of the public link. Owner only, and only while the link is on
public_expires_at?|When the public link expires; null means never. Owner only, and only while the link is on
Format
date-timecreated_at*stringFormat
date-timeupdated_at*stringFormat
date-timecurl -X PATCH 'https://example.com/v1/lists/string' \ -H 'Content-Type: application/json' \ -d '{ "name": "string"}'Example Response
{ "id": "string", "name": "string", "item_count": 0, "role": "owner", "owner_email": "string", "member_count": 0, "public_token": "string", "public_url": "string", "public_expires_at": "2019-08-24T14:15:22Z", "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z"}