Light mode version of Land Your Home
V1Me

Put My Availability

PUT
/v1/me/availability

Replaces the whole weekly schedule in one transaction. An empty windows list clears it.

Required variables:

  • baseUrl
  • apiKey (needs profile:write)
  • userToken

Authorization

bearerAuth userTokenAuth
AuthorizationBearer <token>

Partner API key (lyh_...): identifies the calling partner, its scopes and rate limit.

In: header

X-User-Token<token>

The user's OAuth 2.1 access token, issued by Land Your Home's OAuth server to this partner's OAuth client. Requests run as this user.

In: header

Response Body

application/json

application/json

application/json

curl -X PUT "https://example.com/v1/me/availability"
{  "data": [    {      "dayOfWeek": 1,      "startTime": "09:00",      "endTime": "17:00"    },    {      "dayOfWeek": 2,      "startTime": "09:00",      "endTime": "17:00"    }  ]}