---
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
  - `minPricePerBytePerSecond` string — 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 — Total collateral (in amount of tokens) that can be used for matching requests

## 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` — Persistence is not enabled

## Changes

- **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/92de50a3b676/schema)
