Day Part

Retrieve Day Part Settings

get/v2/company/{company_id}/day_part/settings

Request

  • Base URL
    https://api.7shifts.com
  • Auth
    • OAuth 2
      Authorization codehttps://app.7shifts.com/oauth2/authorize
      Client credentials
      Password
      Token URLhttps://app.7shifts.com/oauth2/token
    • or API key in cookie 7session

Path parameters

company_idinteger required

Company ID

Query parameters

location_idinteger

Location ID - null will fetch all day parts for company

Headers

x-api-versionstring

An API version

Example:2022-05-01

7shifts API version

x-company-guidstring uuid

Company GUID

Response

OK

Example response

{
  "data": [
    {
      "location_id": 1234,
      "name": "My day part",
      "segments": [
        {
          "day_of_week": "Sunday",
          "start_time": "09:00:00",
          "end_time": "17:00:00"
        }
      ],
      "created": "2021-02-12T12:00:00+00:00",
      "modified": "2021-02-12T13:00:00+00:00"
    }
  ]
}

Changes

No recorded changes to this operation across all 2 revisions of this API.