Occupations
Create Occupation
Accesso
Membro dell’organizzazione con questo permesso:
terrains:write
Una chiave API con scope deve avere il permesso anche tra i suoi scope.
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