Skip to main content
POST
/
working-time
Create or update working time
curl --request POST \
  --url https://api.projectcor.com/v1/working-time \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "userId": 11111,
  "companyId": 11111,
  "workingTimes": [
    {
      "dayOfWeek": "1",
      "start": "09:00",
      "end": "18:00",
      "breakTime": "0"
    },
    {
      "dayOfWeek": "2",
      "start": "09:00",
      "end": "18:00",
      "breakTime": "1"
    }
  ]
}
'

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
userId
integer
required

User ID

companyId
integer
required

Company ID

workingTimes
object[]
required

Response

200

Working time saved successfully