---
title: "Updates availability"
method: PATCH
path: "/sales/availability/{id}"
tags: ["Marketplace"]
---

# Updates availability

`PATCH /sales/availability/{id}`

The new parameters will be only considered for new requests.
Existing Requests linked to this Availability will continue as is.

## Path parameters

- `id` string, required

## Request body

- SalesAvailability
  - `totalSize` integer, required — Total size of availability's storage in bytes
  - `duration` integer, required — The duration of the request in seconds
  - `minPricePerBytePerSecond` string, required — Minimal price per byte per second paid (in amount of tokens) for the hosted request's slot for the request's duration as decimal string
  - `totalCollateral` string, required — Total collateral (in amount of tokens) that can be used for matching requests
  - `enabled` boolean — Enable the ability to receive sales on this availability.
  - `until` integer — Specifies the latest timestamp, after which the availability will no longer host any slots. If set to 0, there will be no restrictions.

## Response `204`

Availability successfully updated

## Other responses

- `400` — Invalid data input
- `404` — Availability not found
- `422` — The provided parameters did not pass validation
- `500` — Error reserving availability
- `503` — Persistence is not enabled

## Changes

- **2025-04-02** `c45fb5a40b67` — 6 breaking, 1 warning
  - the request property `duration` became required
  - the request property `minPricePerBytePerSecond` became required
  - the request property `totalCollateral` became required
  - the request property `totalSize` became required
  - …3 more
- **2025-03-26** `3261a02e5377` — 2 info
  - added the new optional request property `enabled`
  - added the new optional request property `until`
- **2025-01-24** `03c5cc35cc9e` — 2 warning, 2 info
  - removed the request property `maxCollateral`
  - removed the request property `minPrice`
  - added the new optional request property `minPricePerBytePerSecond`
  - added the new optional request property `totalCollateral`
- **2024-09-24** `b8ae963e2ad3` — 1 breaking, 1 warning
  - the `id` request property's minLength was increased from `0` to `66`
  - the `id` request property's maxLength was set to `66`
- **2024-03-21** `64a4e4f07d65` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/logos-storage/apis/logos-storage-api/changes/sales/availability/:id/patch.md)

---

[API](https://skmtc.dev/logos-storage/apis/logos-storage-api.md) · [All operations](https://skmtc.dev/logos-storage/apis/logos-storage-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/logos-storage/logos-storage-api/revisions/c45fb5a40b67/schema)
