Skip to content

Create multiple event appointments

Request

Security
BearerPartnerUser
Path
location_idintegerrequired
event_idintegerrequired
Bodyapplication/jsonrequired
recordsArray of objects, [ 1 .. 50 ] itemsrequired
curl -i -X POST \
  'https://developer.alteg.io/_mock/en/b2b-v2/openapi/locations/{location_id}/events/{event_id}/appointments/bulk' \
  -H 'Authorization: Bearer <YOUR_Bearer {PartnerToken}, User {UserToken}_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "records": [
      {
        "client_id": 0,
        "name": "string",
        "phone": "string",
        "email": "user@example.com",
        "clients_count": 1,
        "send_sms_now": 0,
        "sms_hour": 0,
        "email_hour": 0
      }
    ]
  }'

Responses

Per-record creation results

Bodyapplication/json
dataArray of objectsrequired

Created appointments as JSON:API record resources, same attributes as the single appointment creation

metaobjectrequired
Response
{ "data": [ { … } ], "meta": { "errors": [ … ] } }