Occupations
Create Occupation
Accès
Membre de l’organisation avec cette autorisation :
terrains:write
Une clé API avec des scopes doit aussi avoir l’autorisation dans ses scopes.
POST
Creates a new occupation (optional description, paid until and invoiced until).
ApiKeyAuthheader
x-api-key<token>API key for authentication
organizationId*stringThe ID or slug of the organization
application/json- body
customerId*stringterrainId*stringoccupationType?stringValue in
"OWN_ACCOMMODATION""RENTAL_CARAVAN"rentPeriod?price?number|nulldescription?string|nullpaidUntil?stringFormat
date-timeinvoicedUntil?stringFormat
date-timestartReadings?array<>customFields?OK
application/json- response
curl -X POST 'https://api.tillor.eu/orgs//occupations' \ -H 'Content-Type: application/json' \ -d '{ "customerId": "string", "terrainId": "string"}'Example Response
null