PUT /:country/listings/:id/categories

Replaces the categories of a listing without sending the whole listing.

The listing must be claimed by you.

Request body

A JSON object with the array categories of category IDs. The first ID becomes the listing’s primary category. Duplicate IDs are ignored.

{"categories": [58, 1067]}

Response

On success returns 200 OK with the new categories, in the same format as GET /:country/listings/:id/categories.

HTTP

Description

400

The body is invalid or a category does not exist.

403

The listing is not claimed by you.

404

The listing does not exist.