Change the conditions, the opening hours and the live switch of a listing

For the web page of this site only. It needs a signed-in account that owns the listing, an approved claim and a running plan. Send any of the three fields. open_now false closes the toilet for 12 hours, then it follows the hours again. open_now true ends that at once. Conditions and hours are statements of the business. They never change the order of results.

patch/api/v1/partner/listings/{id}

Request

  • Base URL: https://wcway.com
  • URL: https://wcway.com/api/v1/partner/listings/{id}
  • Auth: API key in cookie __Host-wcway_session

Path parameters

idstring required

Request body

conditions'everyone' | 'customers' nullable

What the business says about who may use the toilet. everyone: free for everyone. customers: customers only. Null when the business said nothing. It is the word of the business, not a checked fact.

opening_hoursstring nullable

OpenStreetMap opening_hours syntax, for example Mo-Fr 08:00-18:00. An empty string or null clears it.

open_nowboolean

Response

The profile is saved.

conditions'everyone' | 'customers' nullable required

What the business says about who may use the toilet. everyone: free for everyone. customers: customers only. Null when the business said nothing. It is the word of the business, not a checked fact.

opening_hoursstring nullable required
closed_untilinteger required

Milliseconds since the epoch. 0 when the live switch is on.

open_nowboolean required

The state of the live switch. false: closed for now.

Changes

No recorded changes to this operation across all 1 revision of this API.