List the users
/users
curl -L \ --url 'https://api.ecosuite.io//users' \ --header 'Authorization: YOUR_API_KEY'
{ "users": { "email": "hello@example.com", "firstName": "text", "lastName": "text", "timezone": "text", "userType": "text", "access": { "startDate": "2025-02-24", "endDate": "2025-02-24", "preventDownload": "no", "restrictProjects": "no" } } }
Creates a new user assigning them a server generated ID
curl -L \ --request POST \ --url 'https://api.ecosuite.io//users' \ --header 'Authorization: YOUR_API_KEY' \ --header 'Content-Type: application/json' \ --data '{"email":"hello@example.com","firstName":"text","lastName":"text","access":{"startDate":"2025-02-24","endDate":"2025-02-24","preventDownload":"no","restrictProjects":"no"}}'
{ "email": "hello@example.com", "firstName": "text", "lastName": "text", "timezone": "text", "userType": "text", "access": { "startDate": "2025-02-24", "endDate": "2025-02-24", "preventDownload": "no", "restrictProjects": "no" } }
Get the user
/users/{userId}
The ID of the user
curl -L \ --url 'https://api.ecosuite.io//users/{userId}' \ --header 'Authorization: YOUR_API_KEY'
Update the user
curl -L \ --request PUT \ --url 'https://api.ecosuite.io//users/{userId}' \ --header 'Authorization: YOUR_API_KEY' \ --header 'Content-Type: application/json' \ --data '{"email":"hello@example.com","firstName":"text","lastName":"text","access":{"startDate":"2025-02-24","endDate":"2025-02-24","preventDownload":"no","restrictProjects":"no"}}'
{}
Delete the user
curl -L \ --request DELETE \ --url 'https://api.ecosuite.io//users/{userId}' \ --header 'Authorization: YOUR_API_KEY'