List workweek configs
GET
/v2/labor/workweek-configs
Returns a list of WorkweekConfig
instances for a business.
Permissions
TIMECARDS_SETTINGS_READ
Try in API Explorer
Name | Description |
---|---|
limit
|
The maximum number of |
cursor
|
A pointer to the next page of |
Response Fields
Name | Description |
---|---|
workweek_
|
A page of |
cursor
|
The value supplied in the subsequent request to fetch the next page of
|
errors
|
Any errors that occurred during the request. |
Examples
GET
/v2/labor/workweek-configs
cURL
- cURL
- Ruby
- Python
- C#
- Java
- PHP
- Node.js
curl https://connect.squareup.com/v2/labor/workweek-configs?limit=1&cursor=s4R0Z6ecFTzTC4jz8sUDBQTudX3KE313OT9fCt3VUgsXM4sMgED \
-H 'Square-Version: 2023-01-19' \
-H 'Authorization: Bearer ACCESS_TOKEN' \
-H 'Content-Type: application/json'
Response JSON
{
"workweek_configs": [
{
"id": "FY4VCAQN700GM",
"start_of_week": "MON",
"start_of_day_local_time": "10:00",
"version": 11,
"created_at": "2016-02-04T00:58:24Z",
"updated_at": "2019-02-28T01:04:35Z"
}
],
"cursor": "2fofTniCgT0yIPAq26kmk0YyFQJZfbWkh73OOnlTHmTAx13NgED"
}