BizKitHub
DokumentacePrůzkumník APICalendar/api/v1/calendar/add-event
postCalendarVeřejné API v1

/api/v1/calendar/add-event

Bez popisu.

calendarpostApiV1CalendarAdd-event

Parametry

1 v query · JSON tělo

Parametry v query

· 1
apiKeystringPovinné

Your BizKitHub API key (passed as GET parameter).

Key format: A 32-character string matching: ^(PROD|DEV_|ROOT)[A-Za-z0-9]{28}$
Prefixes: PROD (production key), DEV_ (individual developer), ROOT (system key with no limits). Learn more

PříkladPRODPGrFxpGEtrOZfuWhnoJohUYBXuOE

Tělo požadavku

application/json
eventobjectPovinné
calendarIdstringPovinné

Unique identifier of the calendar where the event will be created.

Příklad2WRp6X5rSqQa321EjHB2mxZz74u74H84
startTimestringPovinnédate-time

ISO 8601 timestamp marking when the event starts.

Příklad2024-05-01T10:00:00.000Z
endTimestringPovinnédate-time

ISO 8601 timestamp marking when the event ends.

Příklad2024-05-01T12:00:00.000Z
titlestringPovinné

Short title that clearly describes the event.

Délka: 1–250
PříkladTraining with Jan
descriptionstringVolitelné

Additional details that describe the event context or purpose.

PříkladTraining will start in Prague – Nusle.
agendastringVolitelné

List of agenda items or talking points. Other team members may edit this content.

Příklad– Warm-up – Deadlift technique – Cool down
urlstringVolitelné

Public or internal link associated with the event.

Příkladhttps://gymroom.cz/pobocky/vinohrady
notifyBeforestringVolitelné

Relative time before the event when email/sms notification should be sent.

Příklad1h 30m
blockingTostringVolitelnédate-time

Time until which the calendar slot remains blocked. Prevents overlapping reservations in the same resource.

Příklad2024-05-01T12:00:00.000Z
locationTitlestringVolitelné

Full physical address of the event location.

PříkladVaršavská 11, 120 00, Praha 2 – Vinohrady
isAllDaybooleanVolitelné

If true, the event spans the entire day (00:00–23:59).

Výchozí: false
Příkladfalse
isBlockingbooleanVolitelné

If true, the event occupies a time slot and conflicts with other events.

Výchozí: true
Příkladtrue
attendeesobject[]Volitelné
Každá položka pole:
memberIdnumberVolitelné

Internal system identifier of a registered member.

Příklad1234
customerIdnumberVolitelné

Unique external customer identifier,

PříkladHxanU4a1n4El61zx
namestringPovinné

Full name of the attendee.

PříkladJan Barášek
emailstringVolitelné

Email address of the attendee.

phonestringVolitelné

Phone number of the attendee in international format.

Příklad+420 777123456
typestringVolitelné

Classification of the event, used for filtering and analytics. Unknown type will be created.

Příkladytrainingwebinar

Schéma odpovědi

1 zdokumentovaný stavový kód

200Úspěch
eventIdstringPovinné
Příkladfqdjnvzrfqjcsmvyhgjirjtvftknayzx

Ukázka odpovědi

application/json
{
  "eventId": "fqdjnvzrfqjcsmvyhgjirjtvftknayzx"
}

Ukázka požadavku

POST /api/v1/calendar/add-event

post
curl -X POST "https://api.bizkithub.com/api/v1/calendar/add-event?apiKey=PRODPGrFxpGEtrOZfuWhnoJohUYBXuOE" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
  "event": {
    "calendarId": "2WRp6X5rSqQa321EjHB2mxZz74u74H84",
    "startTime": "2024-05-01T10:00:00.000Z",
    "endTime": "2024-05-01T12:00:00.000Z",
    "title": "Training with Jan",
    "description": "Training will start in Prague – Nusle.",
    "agenda": "– Warm-up\n– Deadlift technique\n– Cool down",
    "url": "https://gymroom.cz/pobocky/vinohrady",
    "notifyBefore": "1h 30m",
    "blockingTo": "2024-05-01T12:00:00.000Z",
    "locationTitle": "Varšavská 11, 120 00, Praha 2 – Vinohrady",
    "isAllDay": false,
    "isBlocking": true,
    "attendees": [
      {
        "memberId": 1234,
        "customerId": "HxanU4a1n4El61zx",
        "name": "Jan Barášek",
        "email": "[email protected]",
        "phone": "+420 777123456"
      }
    ],
    "type": "training"
  }
}'

Potřebujete API klíč?

Všechny veřejné endpointy BizKitHub API se ověřují API klíčem.

Získat API klíč