/v1/resources/{id}/feed-tokens (POST)
POST
/v1/resources/{id}/feed-tokens
const url = 'http://localhost:8787/v1/resources/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/feed-tokens';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"name":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:8787/v1/resources/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/feed-tokens \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "example" }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string format: uuid
Request Body
Section titled “Request Body”Media typeapplication/json
object
name
required
string
Examplegenerated
{ "name": "example"}Responses
Section titled “Responses”The full /v1/feeds/{token}.ics URL — shown exactly once. Paste it into the OTA’s “import calendar” field; losing it means revoking + re-issuing, never a re-display.
Media typeapplication/json
object
createdAt
required
string
id
required
string format: uuid
name
required
string
resourceId
required
string format: uuid
tokenPrefix
required
string
url
required
string
Examplegenerated
{ "createdAt": "example", "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "name": "example", "resourceId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "tokenPrefix": "example", "url": "example"}No such resource for this tenant.
Media typeapplication/problem+json
object
code
required
string
detail
required
string
status
required
number
title
required
string
type
required
string
Example
{ "code": "resource_not_found"}