cURL
curl --request POST \ --url http://127.0.0.1:8080/api/v1/leases/{lease_id}/end \ --header 'Content-Type: application/json' \ --data ' { "end_date": "2023-12-25", "note": "<string>" } '
{ "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "organization_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "property_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "room_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "renter_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "start_date": "2023-12-25", "monthly_rent": 123, "deposit_amount": 123, "number_of_occupants": 123, "created_at": "2023-11-07T05:31:56Z", "updated_at": "2023-11-07T05:31:56Z", "end_date": "2023-12-25", "note": "<string>" }
Lease ID
Ended lease
ACTIVE
ENDED
CANCELLED