BizKitHub
DokumentacjaEksplorator APICalendar/api/v1/calendar/add-event
postCalendarPubliczne API v1

/api/v1/calendar/add-event

Brak opisu.

calendarpostApiV1CalendarAdd-event

Parametry

1 w query · Treść JSON

Parametry query

· 1
apiKeystringWymagane

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

PrzykładPRODPGrFxpGEtrOZfuWhnoJohUYBXuOE

Treść żądania

application/json
eventobjectWymagane
calendarIdstringWymagane

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

Przykład2WRp6X5rSqQa321EjHB2mxZz74u74H84
startTimestringWymaganedate-time

ISO 8601 timestamp marking when the event starts.

Przykład2024-05-01T10:00:00.000Z
endTimestringWymaganedate-time

ISO 8601 timestamp marking when the event ends.

Przykład2024-05-01T12:00:00.000Z
titlestringWymagane

Short title that clearly describes the event.

Długość: 1–250
PrzykładTraining with Jan
descriptionstringOpcjonalne

Additional details that describe the event context or purpose.

PrzykładTraining will start in Prague – Nusle.
agendastringOpcjonalne

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

Przykład– Warm-up – Deadlift technique – Cool down
urlstringOpcjonalne

Public or internal link associated with the event.

Przykładhttps://gymroom.cz/pobocky/vinohrady
notifyBeforestringOpcjonalne

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

Przykład1h 30m
blockingTostringOpcjonalnedate-time

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

Przykład2024-05-01T12:00:00.000Z
locationTitlestringOpcjonalne

Full physical address of the event location.

PrzykładVaršavská 11, 120 00, Praha 2 – Vinohrady
isAllDaybooleanOpcjonalne

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

Domyślnie: false
Przykładfalse
isBlockingbooleanOpcjonalne

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

Domyślnie: true
Przykładtrue
attendeesobject[]Opcjonalne
Każdy element tablicy:
memberIdnumberOpcjonalne

Internal system identifier of a registered member.

Przykład1234
customerIdnumberOpcjonalne

Unique external customer identifier,

PrzykładHxanU4a1n4El61zx
namestringWymagane

Full name of the attendee.

PrzykładJan Barášek
emailstringOpcjonalne

Email address of the attendee.

phonestringOpcjonalne

Phone number of the attendee in international format.

Przykład+420 777123456
typestringOpcjonalne

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

Przykładytrainingwebinar

Schemat odpowiedzi

1 udokumentowany kod statusu

200Sukces
eventIdstringWymagane
Przykładfqdjnvzrfqjcsmvyhgjirjtvftknayzx

Przykład odpowiedzi

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

Przykład żądania

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

Potrzebujesz klucza API?

Wszystkie publiczne endpointy BizKitHub API uwierzytelniają się kluczem API.

Uzyskaj klucz API