Skip to content
Navigation

Connects one of the caller's iCalendar feeds, read at once and then every 15 minutes; a call names it in `settings.calendar.sync.busy` to be blocked by its events.

POST
https://api.sherpo.io/merchant/v1/stores/{store}/calendar_connections/feeds

Authorization

  • bearer
    HTTP
    required

Path parameters

  • store
    string
    required

    The store's id.

Header parameters

  • Idempotency-Key
    optional
    string

    Repeats within 24 hours answer the first result; the same key with other arguments is a conflict.

    maxLength: 255 · minLength: 1 · pattern: ^[\x21-\x7E]+$

Request body JSON required

  • url
    string
    required

    An iCalendar feed's https or webcal URL, its events blocking the calls that name it; never answered back.

    maxLength: 2048 · minLength: 1

Returns

200

Connects one of the caller's iCalendar feeds, read at once and then every 15 minutes; a call names it in settings.calendar.sync.busy to be blocked by its events.

JSON
  • id
    string
    required
  • kind
    string
    required

    google (busy times, and bookings when can_write) or ics (a feed's busy times).

  • user_id
    string
    required

    The member who connected it; it reads only while they sit on the business.

  • account
    required

    The Google account's address.

    One of the following:

    • string
    • null
  • feed_host
    required

    The feed's host.

    One of the following:

    • string
    • null
  • can_write
    boolean
    required

    Whether bookings can be written into it.

  • status
    string
    required

    syncing until the first read, ok, failing or revoked by Google (its last busy times still block either way), or unseated once its member left.

  • error
    required

    Why the last read failed.

    One of the following:

    • string
    • null
  • synced_at
    required

    One of the following:

    • string
    • null
  • created_at
    string
    required
JSON
  • type
    string
    required
    format: uri
  • title
    string
    required
  • status
    integer
    required
  • detail
    string
    required
  • code
    optional
    string
  • context
    optional
    object
  • reached_core
    optional
    boolean
  • core_answer
    optional
    string

Type to search…

↑↓ navigate↵ selectEsc close