Create Block Slot
Crear bloque de horario
Request
Security: Bearer Auth
Utiliza el Access Token generado con tipo de usuario Subcuenta o el Token de Integración Privada de la Subcuenta en PowerLeads. Proporciona tu token Bearer en el encabezado Authorization al realizar solicitudes a recursos protegidos.
Example: Authorization: Bearer 123
Headers
Access Token
Example: Bearer 9c48df2694a849b6089f9d0d3513efe
API Version
Allowed value: 2021-04-15
Body
calendarId string
Calendar Id (Block Slot can only be created on simple/event calendars)
Example: CVokAlI8fgw4WYWoCtQz
Location Id
Example: C2QujeCh8ZnC7al2InWR
Start Time
Example: 2021-06-23T03:30:00+05:30
End Time
Example: 2021-06-23T04:30:00+05:30
title string
Title
Example: Test Event
assignedUserId string
Assigned User Id
Example: CVokAlI8fgw4WYWoCtQz
curl --request POST \ --url https://services.leadconnectorhq.com/calendars/events/block-slots \ --header 'Accept: application/json' \ --header 'Authorization: Bearer 123' \ --header 'Content-Type: application/json' \ --header 'Version: 2021-04-15' \ --data '{ "calendarId": "CVokAlI8fgw4WYWoCtQz", "locationId": "C2QujeCh8ZnC7al2InWR", "startTime": "2021-06-23T03:30:00+05:30", "endTime": "2021-06-23T04:30:00+05:30", "title": "Test Event", "assignedUserId": "CVokAlI8fgw4WYWoCtQz"}'
Response Example
{ "id": "0TkCdp9PfvLeWKYRRvIz", "locationId": "C2QujeCh8ZnC7al2InWR", "title": "My event", "startTime": "2021-06-23T03:30:00+05:30", "endTime": "2021-06-23T04:30:00+05:30", "calendarId": "CVokAlI8fgw4WYWoCtQz", "assignedUserId": "0007BWpSzSwfiuSl0tR2"}