---
title: "Unpublish Site"
method: POST
path: "/api/v1/sites/{site_id}/unpublish"
---

# Unpublish Site

`POST /api/v1/sites/{site_id}/unpublish`

## Request

- Base URL: `https://trovastorage.it` (the document declares no server; this is the origin it was published from)
- URL: `https://trovastorage.it/api/v1/sites/{site_id}/unpublish`
- Auth: one of:
  - API key in header `X-Access-Token`
  - HTTP bearer

## Path parameters

- `site_id` string, uuid, required

## Response `200`

Successful Response

- SiteResponse
  - `id` string, uuid, required
  - `name` string, required
  - `address_line` string, required
  - `city` string, required
  - `country_code` string, required
  - `lat` number, required
  - `lng` number, required
  - `description` string, nullable, required
  - `access_rules` string, nullable, required
  - `amenities` string[], required
  - `min_term_months` integer, required
  - `notice_period_days` integer, required
  - `grace_period_days` integer, required
  - `published` boolean, required
  - `unit_count` integer
  - `cover_photo_url` string, nullable
  - `opening_hours` OpeningHours: When a centre is staffed and when a customer can get in (0017). `None` and `[]` are different answers and the difference is the point: `office: None` means the operator does not publish office hours, `office: []` means there are no fixed ones — by appointment, or no staffed office. A card that turns "we do not know" into "closed" says something false about a real business.
    - `office` OpeningInterval[], nullable
      - `days` integer[], required
      - `opens` string, required
      - `closes` string, required
    - `access` OpeningInterval[], nullable
      - `days` integer[], required
      - `opens` string, required
      - `closes` string, required
    - `access_24_7` boolean
  - `slug` string, required
  - `public_path` string, required
  - `category` 'self_storage' | 'container_yard' | 'mover_depository', required
  - `price_unit` 'm2' | 'm3', required
  - `listing_rung` integer, required
  - `brand_label` string, nullable
  - `postcode` string, nullable
  - `province` string, nullable
  - `phone` string, nullable
  - `website` string, nullable
  - `contact_email` string, nullable
  - `declared_min_m2` number, nullable
  - `declared_max_m2` number, nullable
  - `operator_reference` string, nullable
  - `address_change` AddressChange: A new address waiting for an admin, as the operator's page and the admin's read it.
    - `address_line` string, required
    - `city` string, required
    - `postcode` string, nullable
    - `province` string, nullable
    - `lat` number, required
    - `lng` number, required
    - `requested_at` string, date-time, required
  - `claim_status` string, nullable
  - `claim_id` string, uuid, nullable
  - `draft` boolean
  - `signage_required` boolean
  - `signage_code` string, nullable
  - `signage_uploaded` boolean

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/trovastorage/apis/stock-your-inventory.md) · [All operations](https://skmtc.dev/trovastorage/apis/stock-your-inventory/llms.txt) · [OpenAPI document](https://skmtc.dev/trovastorage/apis/stock-your-inventory/revisions/c75f591a585c?raw)
