Update Block Slot
Get Blocked Slots
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
Path Parameters
eventId string (required)
Event Id
Example: ocQHyuzHvysMo5N5VsXc
Headers
Authorization string (required)
Access Token
Example: Bearer 9c48df2694a849b6089f9d0d3513efe
Version string (required)
API Version
Allowed value: 2021-04-15
Body
calendarId string
Calendar Id
Example: CVokAlI8fgw4WYWoCtQz
startTime string
Start Time
Example: 2021-06-23T03:30:00+05:30
endTime string
End Time
Example: 2021-06-23T04:30:00+05:30
title string
Title
Example: Test Event
assignedUserId string
Assigned User Id
Example: CVokAlI8fgw4WYWoCtQz
Responses
Successful response 201
Body
id string (required)
Id
Example: 0TkCdp9PfvLeWKYRRvIz
locationId string (required)
Location Id
Example: C2QujeCh8ZnC7al2InWR
title string (required)
Title
Example: My event
startTime string (required)
Start Time
Example: 2021-06-23T03:30:00+05:30
endTime string (required)
End Time
Example: 2021-06-23T04:30:00+05:30
calendarId string
Calendar Id
Example: CVokAlI8fgw4WYWoCtQz
assignedUserId string
Assigned User Id
Example: 0007BWpSzSwfiuSl0tR2
Request Sample: Shell / cURL
curl --request PUT \ --url https://services.leadconnectorhq.com/calendars/events/block-slots/ocQHyuzHvysMo5N5VsXc \ --header 'Accept: application/json' \ --header 'Authorization: Bearer 123' \ --header 'Content-Type: application/json' \ --header 'Version: 2021-04-15' \ --data '{ "calendarId": "CVokAlI8fgw4WYWoCtQz", "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"}