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

Updates a WorkweekConfig

Required permissions TIMECARDS_SETTINGS_WRITE TIMECARDS_SETTINGS_READ

Path Parameters

Name Description
id
string

Required

UUID for the WorkweekConfig object being updated.

Request Body

Name Description
workweek_config
Workweek​Config

Required

The updated WorkweekConfig object.

Response Fields

Name Description
errors
Error [ ]

Any errors that occurred during the request.

workweek_config
Workweek​Config

The response object.

Examples

You are viewing an old version of the API
PUT /v2/labor/workweek-configs/{id}
cURL
  • cURL
  • Ruby
  • Python
curl https://connect.squareup.com/v2/labor/workweek-configs/{id} \
  -X PUT \
  -H 'Square-Version: 2019-11-20' \
  -H 'Authorization: Bearer ACCESS_TOKEN' \
  -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?