Give the public link a new URL
POST
Owner only. The old URL stops working at once; the expiry is kept. 404 (share.not_found) when the link is off or expired.
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*stringThe list with its new link
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 POST 'https://example.com/v1/lists/string/public/rotate'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"}