Lists all the events for the specified date range
/events
The inclusive start date
The exclusive end date
curl -L \ --url 'https://api.ecosuite.io//events?start=2025-02-24T00%3A09%3A11.085Z&end=2025-02-24T00%3A09%3A11.085Z' \ --header 'Authorization: YOUR_API_KEY'
{ "range": { "localStartDate": "2025-02-24T00:09:11.085Z", "localEndDate": "2025-02-24T00:09:11.085Z" }, "events": [ null ] }
Creates a new event generating it a unique ID
curl -L \ --request POST \ --url 'https://api.ecosuite.io//events' \ --header 'Authorization: YOUR_API_KEY' \ --header 'Content-Type: application/json' \ --data '{"cause":"text","startDate":"2025-02-24T00:09:11.085Z","description":"text","type":"energy","priority":1,"location":{"project":"text"},"notes":[{"note":"text"}]}'
{}
Gets the details for the specified event
/events/{eventId}
The event ID
curl -L \ --url 'https://api.ecosuite.io//events/{eventId}' \ --header 'Authorization: YOUR_API_KEY'
{ "event": { "cause": "text", "startDate": "2025-02-24T00:09:11.085Z", "dueDate": "2025-02-24T00:09:11.085Z", "endDate": "2025-02-24T00:09:11.085Z", "description": "text", "type": "energy", "priority": 1, "location": { "project": "text" }, "notes": [ { "note": "text" } ] } }
Update an existing event
curl -L \ --request PUT \ --url 'https://api.ecosuite.io//events/{eventId}' \ --header 'Authorization: YOUR_API_KEY' \ --header 'Content-Type: application/json' \ --data '{"cause":"text","startDate":"2025-02-24T00:09:11.085Z","description":"text","type":"energy","priority":1,"location":{"project":"text"},"notes":[{"note":"text"}]}'
Deletes an existing event
curl -L \ --request DELETE \ --url 'https://api.ecosuite.io//events/{eventId}' \ --header 'Authorization: YOUR_API_KEY'