Links

Units

Learn how to create a unit with the Units API.

1. Create a unit

You must provide at least a previously created building ID, the currency of the unit's pricing and name.
curl https://api.yorlet.com/v1/units \
-H "Authorization: Bearer {{API_KEY}}" \
-H "Content-Type: application/json" \
-d '{
"building": "build_eokwef03fj34if",
"currency": "gbp",
"name": "Apartment 1"
}'
See the create a unit API for a full list of parameters you can send.