---
title: "Unpublish listing from all portals and websites (by vehicle ID)"
method: POST
path: "/api/listings/unpublish-all/by-vehicle/{vehicle_id}"
tags: ["Listings - Admin"]
---

# Unpublish listing from all portals and websites (by vehicle ID)

`POST /api/listings/unpublish-all/by-vehicle/{vehicle_id}`

## Request

- Base URL: `https://api.multigest.pt` (the document declares no server; this is the origin it was published from)
- URL: `https://api.multigest.pt/api/listings/unpublish-all/by-vehicle/{vehicle_id}`
- Auth: API key in header `x-api-token` and API key in header `x-origin-verify`

Same as /listings/{listing_id}/unpublish-all but resolves listing from vehicle ID.
Useful when the caller only has the Viatura.ID (e.g., ContractDialog).

## Path parameters

- `vehicle_id` integer, required

## Headers

- `x-api-token` string, nullable

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/multigest/apis/multigest-protected-api.md) - [All operations](https://skmtc.dev/multigest/apis/multigest-protected-api/llms.txt) - [OpenAPI document](https://skmtc.dev/multigest/apis/multigest-protected-api/revisions/75574126948d?raw)
