---
title: "Offers storage for sale"
method: POST
path: "/sales/availability"
tags: ["Marketplace"]
---

# Offers storage for sale

`POST /sales/availability`

## Request body

- SalesAvailability
  - `id` string — Hexadecimal identifier of the availability
  - `size` string, required — Size of available storage in bytes as decimal string
  - `duration` string — The duration of the request in seconds as decimal string
  - `minPrice` string, required — 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 `200`

Created storage availability

- SalesAvailability
  - `id` string — Hexadecimal identifier of the availability
  - `size` string, required — Size of available storage in bytes as decimal string
  - `duration` string — The duration of the request in seconds as decimal string
  - `minPrice` string, required — 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

## Other responses

- `500` — Error reserving availablility
- `503` — Sales are unavailable

## Changes

- **2023-04-14** `0e176b61eaf1` — 2 info
  - added the new optional request property `maxCollateral`
  - added the optional property `maxCollateral` to the response with the `200` status
- **2023-04-04** `ec53b2d31611` — 1 info
  - added the non-success response with the status `500`
- **2023-03-15** `dfe487dfc0e2` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/logos-storage/apis/logos-storage-api/changes/sales/availability/post.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/27f1035cd6be/schema)
