POST
/
v2
/
booking
/
bulk
curl --request POST \
  --url https://api.sonderplan.com/v2/booking/bulk \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "save": {
    "common_properties": [
      {
        "calendar_subscription_id": 234982,
        "resources": [
          {
            "id": 34982
          }
        ],
        "project": [
          {
            "id": 239909
          }
        ],
        "status": [
          {
            "id": 40123
          }
        ],
        "client": [
          {
            "uuid": "p209809"
          }
        ]
      }
    ],
    "columns": [
      "external_id",
      "start",
      "end",
      "name",
      "notes"
    ],
    "values": [
      "<any>"
    ]
  },
  "delete": {
    "id": [
      98923,
      19812,
      23838
    ],
    "external_id": [
      "1234j@kf9i094-090-9435aasdas"
    ],
    "calendar_subscription_id": [
      989232349
    ]
  }
}'
{
  "save": {
    "success": [
      {
        "id": 2340,
        "external_id": "1234j@kf9i094-090-9435aasdas"
      }
    ]
  },
  "delete": {
    "id": {
      "success": true
    },
    "external_id": {
      "success": true
    },
    "calendar_subscription_id": {
      "success": true
    }
  }
}

Authorizations

Authorization
string
header
required

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

Body

application/json

Allows bulk creation, modification and deletion of bookings

save
object

Create new or update existing bookings (be sure to include an external_id column so we know which bookings to update

delete
object

Delete existing bookings by either id, external_id or calendar_subscription_id

Response

200
application/json
Successful Operation
save
object
delete
object