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

Updates a WorkweekConfig.

Servers

Path parameters

Name Type Required Description
id String Yes

The UUID for the WorkweekConfig object being updated.

Request headers

Name Type Required Description
Content-Type String Yes The media type of the request body.

Default value: "application/json"

Request body fields

Name Type Required Description
workweek_config Object Yes

Sets the day of the week and hour of the day that a business starts a workweek. This is used to calculate overtime pay.

workweek_config.id String No

The UUID for this object.

workweek_config.start_of_day_local_time String Yes

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).

workweek_config.version Integer No

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.

workweek_config.start_of_week String Yes

The day of the week on which a business week ends for compensation purposes.

workweek_config.created_at String No

A read-only timestamp in RFC 3339 format; presented in UTC.

workweek_config.updated_at String No

A read-only timestamp in RFC 3339 format; presented in UTC.

How to start integrating

  1. Add HTTP Task to your workflow definition.
  2. Search for the API you want to integrate with and click on the name.
    • This loads the API reference documentation and prepares the Http request settings.
  3. Click Test request to test run your request to the API and see the API's response.