---
title: "Update Availability"
method: PUT
path: "/v2/company/{company_id}/availabilities/{availability_id}"
tags: ["Availability"]
---

# Update Availability

`PUT /v2/company/{company_id}/availabilities/{availability_id}`

## Path parameters

- `company_id` integer, required
- `availability_id` integer, required

## Headers

- `x-api-version` string — An API version
- `x-company-guid` string, uuid

## Request body

- object
  - `week` string, nullable — Week date of the availability
  - `week_to` string, nullable — Week to date of the availability
  - `repeat` boolean — If true, availability is repeating
  - `mon` integer — The availability status for the day
  - `mon_from` string, time — The start time of the availability for the day
  - `mon_to` string, time — The end time of the availability for the day
  - `mon_comments` string, nullable — Comments included in the days availability
  - `mon_reason` string, nullable — The reason ID for the day
  - `tue` integer — The availability status for the day
  - `tue_from` string, time — The start time of the availability for the day
  - `tue_to` string, time — The end time of the availability for the day
  - `tue_comments` string, nullable — Comments included in the days availability
  - `tue_reason` string, nullable — The reason ID for the day
  - `wed` integer — The availability status for the day
  - `wed_from` string, time — The start time of the availability for the day
  - `wed_to` string, time — The end time of the availability for the day
  - `wed_comments` string, nullable — Comments included in the days availability
  - `wed_reason` string, nullable — The reason ID for the day
  - `thu` integer — The availability status for the day
  - `thu_from` string, time — The start time of the availability for the day
  - `thu_to` string, time — The end time of the availability for the day
  - `thu_comments` string, nullable — Comments included in the days availability
  - `thu_reason` string, nullable — The reason ID for the day
  - `fri` integer — The availability status for the day
  - `fri_from` string, time — The start time of the availability for the day
  - `fri_to` string, time — The end time of the availability for the day
  - `fri_comments` string, nullable — Comments included in the days availability
  - `fri_reason` string, nullable — The reason ID for the day
  - `sat` integer — The availability status for the day
  - `sat_from` string, time — The start time of the availability for the day
  - `sat_to` string, time — The end time of the availability for the day
  - `sat_comments` string, nullable — Comments included in the days availability
  - `sat_reason` string, nullable — The reason ID for the day
  - `sun` integer — The availability status for the day
  - `sun_from` string, time — The start time of the availability for the day
  - `sun_to` string, time — The end time of the availability for the day
  - `sun_comments` string, nullable — Comments included in the days availability
  - `sun_reason` string, nullable — The reason ID for the day

## Response `201`

Availability updated

- object
  - `object` 'availability', required
  - `data` object, required
    - `id` integer — Availability ID
    - `status` integer — Indicates the status of the availability

## Other responses

- `400` — Bad Request
- `403` — Forbidden
- `404` — Not found
- `409` — Conflict
- `422` — Unprocessable Entity

---

[API](https://skmtc.net/7shifts/apis/7shifts-api.md) · [All operations](https://skmtc.net/7shifts/apis/7shifts-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/7shifts/7shifts-api/revisions/96a02ef888ab/schema)
