Replace a feed link
POST
/api/v1/calendar/feeds/{id}/link
const url = 'https://example.com/api/v1/calendar/feeds/example/link';const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/v1/calendar/feeds/example/link \ --header 'Authorization: Bearer <token>'Requires a signed-in User. It replaces the current link and returns the new link. The old link stops working. It returns 404 when the feed is missing. Route: /api/v1/calendar/feeds/{id}/link. Inputs: id. Do not automatically replay this operation after an uncertain result.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Responses
Section titled “Responses”Media typeapplication/json
One-time result returned only when a User creates or rotates a feed link.
object
feed_id
required
Stable ID used to open the owning feed’s Settings deep link.
string
https_url
required
string
webcal_url
required
string
Examplegenerated
{ "feed_id": "example", "https_url": "example", "webcal_url": "example"}Media typeapplication/json
The standard API error response: { "error": { ... } }.
object
Example
{ "error": { "code": "bad_request" }}