Stop sharing the item
The link stops working at once and for good (404 for anyone who opens it). Idempotent.
bearerAuthorizationBearer <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 item is private
curl -X DELETE 'https://example.com/v1/items/string/share'The item's public link GET
404 (`share.not_found`) when the item is not shared or its link has expired. Cheap; call it when the preview opens, or read `shared` on the item.
Share the item, or change the expiry of its link PUT
Turns the public link on, or changes the expiry of the link that is on without changing its URL. With no body or no `expires_at`, a new link never expires and an existing one keeps its expiry; `null` means never. An expired link is replaced by a new URL. 402 when the plan lacks `sharing` or is at its `public_links` limit; 422 for an expiry that is not in the future (`in_past`) or more than 365 days ahead (`too_far_ahead`).