Skip to main content
POST
Publish viewing times

Authorizations

Authorization
string
header
required

Authorization: Bearer

Path Parameters

code
string
required

The listing's public code (8 characters, as in its URL on Housera).

Query Parameters

locale
enum<string>
default:en

The response language, ro or en. It changes error messages (title, detail), labels and, when the listing has an approved translation in that language, its title and description. Codes are the same in every language. It takes precedence over Accept-Language and over the account's language.

Available options:
ro,
en

Body

application/json
slots
string[]
required

The viewing times. When publishing, the start times. When reading, the times and windows that have not passed yet.

Required array length: 1 - 400 elements
Maximum string length: 40
duration_min
enum<integer> | null

How long a viewing lasts, in minutes: 15, 30, 45, 60 or 90.

Available options:
15,
30,
45,
60,
90,
null
set_listing_duration
boolean

Keeping the length as the listing's.

Response

The request succeeded.

The response is of type object.