API for Calamari, your HR tool
API for Calamari, your HR tool
curl -i -X POST \
-u <username>:<password> \
https://awesome-company.calamari.io/api/clockin/projects/v1/archive \
-H 'Content-Type: application/json' \
-d '{
"projectId": 13
}'
{ "id": 0, "name": "Primary project" }
List of employees e-mails or logins. Example: ["john.smith@domain.com", "mark.small@domain.com"]
curl -i -X POST \
-u <username>:<password> \
https://awesome-company.calamari.io/api/clockin/projects/v1/create \
-H 'Content-Type: application/json' \
-d '{
"name": "PROJECT-123",
"restrictedToPersons": [
"string"
],
"restrictedToTeams": [
"string"
]
}'
{ "id": 0, "name": "Primary project", "employees": [ { … } ], "teams": [ { … } ] }
curl -i -X POST \
-u <username>:<password> \
https://awesome-company.calamari.io/api/clockin/projects/v1/get-projects
[ { "id": 0, "name": "Primary project", "employees": [ … ], "teams": [ … ] } ]
curl -i -X POST \
-u <username>:<password> \
https://awesome-company.calamari.io/api/clockin/projects/v1/get-projects-for-person \
-H 'Content-Type: application/json' \
-d '{
"person": "john.white@mycompany.com"
}'
[ { "id": 0, "name": "Primary project" } ]
curl -i -X POST \
-u <username>:<password> \
https://awesome-company.calamari.io/api/clockin/projects/v1/update \
-H 'Content-Type: application/json' \
-d '{
"projectId": 13,
"name": {
"value": "string"
},
"restrictedToPersons": {
"value": [
"string"
]
},
"restrictedToTeams": {
"value": [
"string"
]
}
}'
{ "id": 0, "name": "Primary project", "employees": [ { … } ], "teams": [ { … } ] }