---
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
  - `id` string — 32bits identifier encoded in hex-decimal string.
  - `totalSize` string — Total size of availability's storage in bytes as decimal string
  - `duration` string — The duration of the request in seconds as decimal string
  - `minPrice` string — Minimum price to be paid (in amount of tokens) as decimal string
  - `maxCollateral` string — Maximum collateral user is willing to pay per filled Slot (in amount of tokens) as decimal string

## Response `204`

Availability successfully updated

## Other responses

- `400` — Invalid data input
- `404` — Availability not found
- `422` — Not enough node's storage quota available
- `500` — Error reserving availability
- `503` — Sales are unavailable

## Changes

- **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/40df38b968da/schema)
