Contribute knowledge
const url = 'https://api.wink.travel/api/property-embeddings/external/contribute';const options = { method: 'POST', headers: { 'Wink-Version': '2.0', Authorization: 'Bearer <token>', 'Content-Type': 'application/json' }, body: 'null'};
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://api.wink.travel/api/property-embeddings/external/contribute \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'Wink-Version: 2.0' \ --data nullAdds partner-supplied knowledge or local insight to a property’s embeddings for enhanced RAG context. The caller must own a mapping for the target property. Uses contributionId as an idempotency key — re-submitting the same ID replaces the previous contribution.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Header Parameters
Section titled “Header Parameters ”Request Body required
Section titled “Request Body required ”Contribute partner knowledge or local insight to a property’s embeddings for enriched RAG context
object
Identifier namespace (HOTEL_CODE, URL_NAME, PLACE_ID, or PARTNER)
Example
PARTNERExternal identifier value
Example
BOOKING-987654Idempotency key for this contribution (UUID or text); re-submitting the same key replaces previous contribution
Example
partnership-2026-001-amenitiesContent to contribute (rich text, experience notes, or local insight)
Example
This luxury property features a 25-metre infinity pool overlooking the Chao Phraya River, award-winning spa, and three Michelin-trained chefs.Fact type: must be PARTNER_KNOWLEDGE (operational data) or PARTNER_LOCAL_INSIGHT (curated local content)
Example
PARTNER_KNOWLEDGEISO 639-1 language code (e.g. en, th, ja)
Example
enResponses
Section titled “ Responses ”Contribution added/updated successfully; returns hotelId and insertedCount
object
Example generated
{ "additionalProperty": "example"}Invalid request (invalid factType, namespace, or missing required fields)
Missing or invalid JWT authentication
Caller does not own a mapping for the target property
Property not found for the given namespace and externalId
object
Example generated
{ "additionalProperty": "example"}Internal Server Error
object
Example generated
{}