• Example searches: “transaction”, “CreateOrder”, “/v2/locations”, “inventory”, “delete customer”

You are viewing an old version of the API
Update workweek config

PUT /v2/labor/workweek-configs/{id}

Updates a WorkweekConfig.


Permissions
TIMECARDS_SETTINGS_WRITE
TIMECARDS_SETTINGS_READ
Try in API Explorer
Name Description
id
string

Required

UUID for the WorkweekConfig object being updated.

Name Description
workweek_config
WorkweekConfig

Required

The updated WorkweekConfig object.

Response Fields

Name Description
workweek_config
WorkweekConfig

The response object.

errors
Error [ ]

Any errors that occurred during the request.

Examples

You are viewing an old version of the API
PUT /v2/labor/workweek-configs/{id}
cURL
  • cURL
  • Ruby
  • Python
  • C#
  • Java
  • PHP
curl https://connect.squareup.com/v2/labor/workweek-configs/FY4VCAQN700GM \
  -X PUT \
  -H 'Square-Version: 2020-08-12' \
  -H 'Authorization: Bearer ACCESS_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{
    "workweek_config": {
      "start_of_week": "MON",
      "start_of_day_local_time": "10:00",
      "version": 10
    }
  }'
Response JSON
{
  "workweek_config": {
    "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"
  }
}

Share Feedback

Thanks for visiting the Square API documentation. What's on your mind?