Dokumentasi API SunnyDay
  1. Calendar Events
Dokumentasi API SunnyDay
  • Introduction
  • Locations
    • Update Locations
      PUT
    • Get Location Data
      GET
  • Calendars
    • Calendars
      • Get Free Slots
      • Update Calendar
      • Get Calendar
      • Delete Calendar
      • Get Calendars
      • Create Calendar
    • Calendar Groups
      • Get Groups
      • Create Calendar Group
      • Validate group slug
      • Delete Group
      • Update Group
      • Disable Group
    • Calendar Events
      • Create Appointment
        POST
      • Update Appointment
        PUT
      • Get Appointment
        GET
      • Get Calendar Events
        GET
      • Get Blocked Slots
        GET
      • Create Block Slot
        POST
      • Update Block Slot
        PUT
      • Delete Event
        DELETE
    • Appointment Notes
      • Get Notes
      • Create Note
      • Update Note
      • Delete Note
    • Calendar Resources: Rooms & Equipments
      • Get Calendar Resource
      • Update Calendar Resource
      • Delete Calendar Resource
      • List Calendar Resources
      • Create Calendar Resource
    • Calendar Notifications
      • Get notifications
  1. Calendar Events

Update Block Slot

PUT
https://services.sunnyday.co.id/api/calendars/events/block-slots/{eventId}
Update block slot by ID

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Path Params

Header Params

Body Params application/jsonRequired

Examples

Responses

🟢200Success
application/json
Body

🟠400Bad Request
🟠401Unauthorized
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT 'https://services.sunnyday.co.id/api/calendars/events/block-slots/ocQHyuzHvysMo5N5VsXc' \
--header 'Version: 2021-04-15' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "title": "Test Event",
    "calendarId": "CVokAlI8fgw4WYWoCtQz",
    "assignedUserId": "CVokAlI8fgw4WYWoCtQz",
    "locationId": "C2QujeCh8ZnC7al2InWR",
    "startTime": "2021-06-23T03:30:00+05:30",
    "endTime": "2021-06-23T04:30:00+05:30"
}'
Response Response Example
200 - Example 1
{
    "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"
}
Previous
Create Block Slot
Next
Delete Event
Built with