Calamari Public API (v1)

API for Calamari, your HR tool

Languages
Servers

https://{tenantName}.calamari.io/api/

Absence requests

Operations

Absence type

Operations

Contract types

Operations

Current shift status

Operations

Employees

Operations

Holidays

Operations

Positions

Operations

Projects

Operations

Shifts and breaks

Operations

Teams

Operations

Get all teams.

Request

Get all teams.

Security
basicAuth
curl -i -X POST \
  -u <username>:<password> \
  https://awesome-company.calamari.io/api/teams/v1/all

Responses

successful operation

Bodyapplication/jsonArray [
idinteger(int64)required

Team ID

namestringrequired

Team name

Example: "Primary team"
]
Response
application/json
[ { "id": 0, "name": "Primary team" } ]

Create a team.

Request

Create a team.

Security
basicAuth
Bodyapplication/json
namestring[ 1 .. 2147483647 ] charactersrequired

Team name.

Example: "Marketing"
membersArray of integers(int64)required

Identifiers of team members.

managersArray of integers(int64)required

Identifiers of team managers.

curl -i -X POST \
  -u <username>:<password> \
  https://awesome-company.calamari.io/api/teams/v1/create \
  -H 'Content-Type: application/json' \
  -d '{
    "name": "Marketing",
    "members": [
      0
    ],
    "managers": [
      0
    ]
  }'

Responses

successful operation

Bodyapplication/json
idinteger(int64)required

Id of the created team.

Example: 1
Response
application/json
{ "id": 1 }

Remove chosen team.

Request

Remove chosen team.

Expect error codes:

  1. INVALID_REQUEST - when invalid team provided

Security
basicAuth
Bodyapplication/json
idinteger(int64)required

Team ID

curl -i -X POST \
  -u <username>:<password> \
  https://awesome-company.calamari.io/api/teams/v1/remove \
  -H 'Content-Type: application/json' \
  -d '{
    "id": 0
  }'

Responses

The team has been successfully removed.

Body
Response
No content

Update chosen team.

Request

Update chosen team.

Expect error codes:

  1. INVALID_REQUEST - when invalid team data provided

Security
basicAuth
Bodyapplication/json
idinteger(int64)required

Team ID

namestring[ 1 .. 2147483647 ] charactersrequired

Team name.

Example: "Marketing"
membersArray of integers(int64)required

Identifiers of team members.

managersArray of integers(int64)required

Identifiers of team managers.

curl -i -X POST \
  -u <username>:<password> \
  https://awesome-company.calamari.io/api/teams/v1/update \
  -H 'Content-Type: application/json' \
  -d '{
    "id": 0,
    "name": "Marketing",
    "members": [
      0
    ],
    "managers": [
      0
    ]
  }'

Responses

The team has been successfully updated.

Body
Response
No content

Timesheet entries

Operations

Working Week

Operations

People (Beta)

Endpoints related to managing people records.

Operations