v1

latestOpenAPI 3.0.0Apache 2.02026-07-143281,4552.1 MB
BookingCustomAttributes

BulkDeleteBookingCustomAttributes

Bulk deletes bookings custom attributes.

To call this endpoint with buyer-level permissions, set APPOINTMENTS_WRITE for the OAuth scope. To call this endpoint with seller-level permissions, set APPOINTMENTS_ALL_WRITE and APPOINTMENTS_WRITE for the OAuth scope.

For calls to this endpoint with seller-level permissions to succeed, the seller must have subscribed to Appointments Plus or Appointments Premium.

post/v2/bookings/custom-attributes/bulk-delete

Request body

valuesobject required

A map containing 1 to 25 individual Delete requests. For each request, provide an arbitrary ID that is unique for this BulkDeleteBookingCustomAttributes request and the information needed to delete a custom attribute.

Response

Success

valuesobject

A map of responses that correspond to individual delete requests. Each response has the same ID as the corresponding request and contains booking_id and errors field.

Example response

{
  "errors": [],
  "values": {
    "id1": {
      "booking_id": "N3NCVYY3WS27HF0HKANA3R9FP8",
      "errors": []
    },
    "id2": {
      "booking_id": "SY8EMWRNDN3TQDP2H4KS1QWMMM",
      "errors": []
    },
    "id3": {
      "booking_id": "SY8EMWRNDN3TQDP2H4KS1QWMMM",
      "errors": []
    }
  }
}