Skip to content

Positions

Positions API

Create a position.

Request

Create a position.

Security
basicAuth
Bodyapplication/json
positionNamestring, [ 1 .. 2147483647 ] charactersrequired

Position name.

Example:"Manager"
membersArray of integers, (int64)required

Ids of employees in the position.

Example:
[ 123 ]
curl -i -X POST \
  -u '<username>:<password>' \
  https://awesome-company.calamari.io/api/positions/v1/create \
  -H 'Content-Type: application/json' \
  -d '{
    "positionName": "Manager",
    "members": [
      123
    ]
  }'

Responses

successful operation

Bodyapplication/json
idinteger, (int64)required

Id of the created position.

Example:1
Response
{ "id": 1 }