Saltar al contenido

Get a new link for a personal calendar feed

Módulo Platform

POST/person-calendar-feeds/{id}/rotatepersonCalendarFeeds.rotate

Replaces the feed's token (app.rotate_person_calendar_feed) and returns the new one once. The old subscription URL answers 404 at once. Requires `Idempotency-Key`; a replay returns the original response. A rule that refuses the request returns 422 with `refusal` and `reason`.

  • Requiere la capacidad me.calendar_feeds.write.
  • Alcances de OAuth: me.
  • Envía el encabezado Idempotency-Key. Una repetición con la misma clave devuelve la respuesta original.
  • Estados de error: 400, 401, 404, 409, 422, 429. Los errores son detalles de problema RFC 9457.

Parámetros de ruta y de consulta

personCalendarFeeds.rotate: Parámetros de ruta y de consulta
CampoTipoObligatorioDescripción
idstring (uuid)SíIdentifier of the person calendar feed.

Respuesta 200: CalendarFeedToken

personCalendarFeeds.rotate: CalendarFeedToken
CampoTipoObligatorioDescripción
calendar_feed_idstring (uuid)SíIdentifier of the calendar feed.
feed_tokenstringSíThe token of the feed's subscription URL. Shown once; only its hash is stored, and revoking the feed ends it.Restricciones: length 1 to any
{
  "calendar_feed_id": "0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f",
  "feed_token": "cal_9fQ2mX4vT7kL1pR8"
}

Ejemplos de código

curl -X POST "$XOS_BASE_URL/person-calendar-feeds/0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f/rotate" \
  -H "Authorization: Bearer $XOS_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)"
const { data } = await xos.personCalendarFeeds.rotate("0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f");
response = xos.person_calendar_feeds.rotate("0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f")
xos person-calendar-feeds rotate 0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f