Skip to main content
POST
/
2025-09
/
units
/
{unit_id}
/
deallocate
Deallocate a Unit
curl --request POST \
  --url https://public-api.stora.co/2025-09/units/{unit_id}/deallocate \
  --header 'Authorization: Bearer <token>'
{
  "unit": {
    "id": "unit_1e36123098e22cf8",
    "created_at": "2025-02-22T14:41:00Z",
    "reference_id": "UNIT-001",
    "site": {
      "id": "site_14b419f1096013f1"
    },
    "status": "available",
    "unit_allocation": null,
    "unit_type": {
      "id": "utype_f18fc91387cdf710"
    },
    "updated_at": "2025-02-22T14:41:00Z"
  },
  "meta": {
    "request_id": "01563646-58c1-4607-8fe0-cae3e92c4477",
    "curies": [
      {
        "name": "bo",
        "href": "https://app.stora.test{rel}",
        "templated": true,
        "title": "Backoffice"
      },
      {
        "name": "sf",
        "href": "https://acme.stora.test{rel}",
        "templated": true,
        "title": "Storefront"
      }
    ]
  }
}

Authorizations

Authorization
string
header
required

Bearer Token necessary to use API

Path Parameters

unit_id
string
required

The ID of the unit to deallocate

Response

unit deallocated successfully

Single Unit

unit
object

Unit

meta
object