Public API
  1. Scheduling
Public API
  • Welcome to the deskbird Public API
  • Users
    • Lists company users
      GET
    • Lists single company user
      GET
  • Bookings
    • Lists company bookings
      GET
    • Creates booking
      POST
    • Lists single company booking
      GET
    • Updates booking
      PATCH
    • Cancels booking
      PATCH
    • Check in to the booking
      PATCH
    • Early release the booking
      PATCH
  • Groups
    • Lists company user groups
      GET
    • Lists single company user group
      GET
  • Resources
    • Get a resource by id
      GET
    • Lists company resources
      GET
  • Offices
    • Lists company offices
      GET
    • Check User into Office
      POST
  • Scheduling
    • Lists company scheduling
      GET
    • Delete scheduling statuses by IDs
      DELETE
    • Add new scheduling statuses for a user
      POST
  • Scheduling Options
    • Lists company scheduling options
      GET
  1. Scheduling

Add new scheduling statuses for a user

POST
/scheduling/user/{userId}

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/json

Example
{
    "scheduling": [
        {
            "day": "2025-01-01",
            "optionId": "485945d8-5cd3-44fc-b703-59a5ffc32472",
            "officeId": "123",
            "duration": "full_day"
        }
    ]
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://connect.deskbird.com/scheduling/user/' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "scheduling": [
        {
            "day": "2025-01-01",
            "optionId": "485945d8-5cd3-44fc-b703-59a5ffc32472",
            "officeId": "123",
            "duration": "full_day"
        }
    ]
}'

Responses

🟢200OK
application/json
List of company scheduling statuses
Body

Example
{
    "id": "84cc5919-f9c4-4c39-9138-fdec194500e7",
    "day": "2025-01-01",
    "userId": "d6d04c0a-345d-4502-83f1-de8100248770",
    "officeId": "123",
    "optionId": "d76e6b2a-a9ce-41b9-9cc6-f297a92e9c8d",
    "externalStatus": false,
    "externalStatusId": "60266b80-9288-47c9-a673-a9acd3c017a4",
    "externalCalendarEventId": "630fde47-dbaa-44ff-91ad-e523e5b7dc3d",
    "duration": "full_day",
    "anonymized": false,
    "user": {},
    "option": {
        "id": "46e51f33-2b6e-43d2-b4d8-d1e79ba34458",
        "name": "Mobile work",
        "type": "mobile_work",
        "color": "#916BFF",
        "order": 1,
        "isPrimary": false,
        "isActive": true,
        "policyRule": "remote"
    },
    "office": {
        "id": "1234",
        "name": "Office 1",
        "address": {
            "street": "123 Main St",
            "streetNo": "123",
            "extra": "Apt 1",
            "postalCode": "12345",
            "city": "Anytown",
            "state": "CA",
            "country": "USA",
            "countryCode": "USA",
            "latitude": 123.456,
            "longitude": 123.456,
            "radius": 123.456,
            "timeZone": "America/New_York"
        }
    }
}
🟢201Created
🟠403Forbidden
🟠404Record Not Found
Previous
Delete scheduling statuses by IDs
Next
Lists company scheduling options
Built with