BizKitHub
DokumentáciaPrieskumník APICalendar/api/v1/calendar/add-event
postCalendarVerejné API v1

/api/v1/calendar/add-event

Bez popisu.

calendarpostApiV1CalendarAdd-event

Parametre

1 v query · JSON telo

Parametre 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

PríkladPRODPGrFxpGEtrOZfuWhnoJohUYBXuOE

Telo požiadavky

application/json
eventobjectPovinné
calendarIdstringPovinné

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

Príklad2WRp6X5rSqQa321EjHB2mxZz74u74H84
startTimestringPovinnédate-time

ISO 8601 timestamp marking when the event starts.

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

ISO 8601 timestamp marking when the event ends.

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

Short title that clearly describes the event.

Dĺžka: 1–250
PríkladTraining with Jan
descriptionstringVoliteľné

Additional details that describe the event context or purpose.

PríkladTraining will start in Prague – Nusle.
agendastringVoliteľné

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

Príklad– Warm-up – Deadlift technique – Cool down
urlstringVoliteľné

Public or internal link associated with the event.

Príkladhttps://gymroom.cz/pobocky/vinohrady
notifyBeforestringVoliteľné

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

Príklad1h 30m
blockingTostringVoliteľnédate-time

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

Príklad2024-05-01T12:00:00.000Z
locationTitlestringVoliteľné

Full physical address of the event location.

PríkladVaršavská 11, 120 00, Praha 2 – Vinohrady
isAllDaybooleanVoliteľné

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

Predvolené: false
Príkladfalse
isBlockingbooleanVoliteľné

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

Predvolené: true
Príkladtrue
attendeesobject[]Voliteľné
Každá položka poľa:
memberIdnumberVoliteľné

Internal system identifier of a registered member.

Príklad1234
customerIdnumberVoliteľné

Unique external customer identifier,

PríkladHxanU4a1n4El61zx
namestringPovinné

Full name of the attendee.

PríkladJan Barášek
emailstringVoliteľné

Email address of the attendee.

phonestringVoliteľné

Phone number of the attendee in international format.

Príklad+420 777123456
typestringVoliteľné

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

Príkladytrainingwebinar

Schéma odpovede

1 zdokumentovaný stavový kód

200Úspech
eventIdstringPovinné
Príkladfqdjnvzrfqjcsmvyhgjirjtvftknayzx

Ukážka odpovede

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

Ukážka požiadavky

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"
  }
}'

Potrebujete API kľúč?

Všetky verejné endpointy BizKitHub API sa overujú API kľúčom.

Získať API kľúč