PUT
/
v2
/
calendar-subscription
/
import
curl --request PUT \
  --url https://api.sonderplan.com/v2/calendar-subscription/import \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "enabled": true,
  "booking_property": {
    "client": [
      {
        "uuid": "u2349"
      }
    ],
    "status": [
      {
        "id": 1
      }
    ],
    "project": [
      {
        "id": 2
      }
    ],
    "resources": [
      {
        "id": 1928
      }
    ],
    "custom_fields": [
      {}
    ]
  },
  "calendar_url": "https://calendar.google.com/calendar/i"
}'
{
  "success": {
    "id": 2384
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

id
string
required

The ID of the calendar subscription you wish to update

Body

application/json

External shared calendars that are imported into Sonderplan on a recurring schedule

enabled
boolean

If enabled, Sonderplan will be regularly checking the external calendar for changes

Example:

true

booking_property
object

Bookings imported from the external calendar will have these properties added

calendar_url
string

URL (link) to the external calendar subscription, usually a .ics file

Example:

"https://calendar.google.com/calendar/i"

Response

200
application/json
Successful Operation
success
object