---
title: "Set a resource's working hours"
method: PUT
path: "/v1/resources/{resourceId}/working-hours"
tags: ["Resources"]
---

# Set a resource's working hours

`PUT /v1/resources/{resourceId}/working-hours`

## Request

- Base URL: `https://api.workwing.io`
- URL: `https://api.workwing.io/v1/resources/{resourceId}/working-hours`
- Auth: HTTP bearer

Upserts working-hours rows by (resource, day_of_week). day_of_week is 0=Sunday..6=Saturday.

## Path parameters

- `resourceId` string, uuid, required

## Headers

- `Idempotency-Key` string, required

## Request body

- object
  - `working_hours` unknown[], required
    - unknown

## Response `200`

Every working-hours row the resource now has, not only the days sent.

- object: Every working-hours row the resource now has, not only the days sent.
  - `data` object[], required
    - `id` string, uuid, required
    - `resource_id` string, uuid, required
    - `day_of_week` integer, required: 0=Sunday..6=Saturday
    - `start_time` string, required: HH:MM:SS
    - `end_time` string, required: HH:MM:SS
    - `is_working` boolean, required
  - `meta` object, required
    - `request_id` string, required
    - `timestamp` string, date-time, required

---

[API](https://skmtc.dev/workwing/apis/workwing-api.md) · [All operations](https://skmtc.dev/workwing/apis/workwing-api/llms.txt) · [OpenAPI document](https://skmtc.dev/workwing/apis/workwing-api/revisions/54bb14368a35?raw)
