---
title: "UpdateWorkweekConfig"
method: PUT
path: "/v2/labor/workweek-configs/{id}"
tags: ["Labor"]
---

# UpdateWorkweekConfig

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

Updates a `WorkweekConfig`.

## Path parameters

- `id` string, required

## Request body

- UpdateWorkweekConfigRequest — A request to update a `WorkweekConfig` object.
  - `workweek_config` WorkweekConfig, required — Sets the day of the week and hour of the day that a business starts a workweek. This is used to calculate overtime pay.
    - `created_at` string — A read-only timestamp in RFC 3339 format; presented in UTC.
    - `id` string — The UUID for this object.
    - `start_of_day_local_time` string, required — The local time at which a business week ends. Represented as a string in `HH:MM` format (`HH:MM:SS` is also accepted, but seconds are truncated).
    - `start_of_week` string, required — The day of the week on which a business week ends for compensation purposes.
    - `updated_at` string — A read-only timestamp in RFC 3339 format; presented in UTC.
    - `version` integer — Used for resolving concurrency issues. The request fails if the version provided does not match the server version at the time of the request. If not provided, Square executes a blind write; potentially overwriting data from another write.

## Response `200`

Success

- UpdateWorkweekConfigResponse — The response to a request to update a `WorkweekConfig` object. The response contains the updated `WorkweekConfig` object and might contain a set of `Error` objects if the request resulted in errors.
  - `errors` Error[] — Any errors that occurred during the request.
    - `category` string, required — The high-level category for the error.
    - `code` string, required — The specific code of the error.
    - `detail` string — A human-readable description of the error for debugging purposes.
    - `field` string — The name of the field provided in the original request (if any) that the error pertains to.
  - `workweek_config` WorkweekConfig — Sets the day of the week and hour of the day that a business starts a workweek. This is used to calculate overtime pay.
    - `created_at` string — A read-only timestamp in RFC 3339 format; presented in UTC.
    - `id` string — The UUID for this object.
    - `start_of_day_local_time` string, required — The local time at which a business week ends. Represented as a string in `HH:MM` format (`HH:MM:SS` is also accepted, but seconds are truncated).
    - `start_of_week` string, required — The day of the week on which a business week ends for compensation purposes.
    - `updated_at` string — A read-only timestamp in RFC 3339 format; presented in UTC.
    - `version` integer — Used for resolving concurrency issues. The request fails if the version provided does not match the server version at the time of the request. If not provided, Square executes a blind write; potentially overwriting data from another write.

---

[API](https://skmtc.net/square/apis/squareup.md) · [All operations](https://skmtc.net/square/apis/squareup/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/square/squareup/revisions/8d95e3639487/schema)
