Skip to content

/v1/resources/{id}/feed-tokens (POST)

POST
/v1/resources/{id}/feed-tokens
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" }'
id
required
string format: uuid
Media typeapplication/json
object
name
required
string
>= 1 characters <= 200 characters
Examplegenerated
{
"name": "example"
}

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
Allowed values: resource_not_found feed_token_not_found connection_not_found listing_already_mapped conflict_not_found invalid_cursor already_resolved
detail
required
string
status
required
number
title
required
string
type
required
string
Example
{
"code": "resource_not_found"
}