Light mode version of Land Your Home
V1Teams

Post Team Licences Move

POST
/v1/teams/{teamId}/licences/move

Moves the user's own licences that aren't in a team yet into this team's pool. Team admins only. Returns how many moved (0 if none were left).

Required variables:

  • baseUrl
  • apiKey (needs licences:write)
  • userToken
  • teamId (set by Get Teams)

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

Path Parameters

teamId*string

Response Body

application/json

application/json

curl -X POST "https://example.com/v1/teams/string/licences/move"
{  "data": {    "moved": 1  }}