Assembled API – Assembled

Retrieving Scheduled Hours Using the Assembled API

Assembled API enables users to access essential data regarding the scheduling of hours. Below is a guide on how to retrieve scheduled hours effectively.

Steps to Retrieve Scheduled Hours

  1. Authentication: Ensure you have the proper authentication tokens to access the API.
  2. API Endpoint: Use the endpoint GET /scheduled_hours for fetching the data.
  3. Parameters: You may include parameters such as date to filter the results according to your needs.
  4. Response Structure: Expect a JSON response containing details about scheduled hours including user and time information.

Example Request

curl -X GET 'https://api.assembled.com/v1/scheduled_hours' \ 
-H 'Authorization: Bearer YOUR_API_TOKEN'

Example Response

{
  "data": [
    {
      "user": "John Doe",
      "scheduled_hours": "40",
      "date": "2023-10-01"
    },
    {
      "user": "Jane Smith",
      "scheduled_hours": "36",
      "date": "2023-10-01"
    }
  ]
}

This process allows developers to integrate scheduled hours into their applications, enhancing functionality and user experience.