Skip to main content
POST
Create a contract

Authorizations

Authorization
string
header
required

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

Body

application/json

Contract object that needs to be created

employeeId
string<uuid>
required

The ID of the employee

startAt
string<date>
required

Start date of contract

endAt
string<date>

end date of contract

code
string

Code of the contract

comment
string

Comments

jobChargeId
string<uuid>

The ID of the job charge

contractTypeId
string<uuid>

The ID of the agreement

agreementId
string<uuid>

The ID of the agreement

degreeId
string<uuid>

The ID of the degree

workDayTypeId
string<uuid>

The ID of the work type

socialSecurityNumber
string

The social security number

trialPeriod
object
trialPeriodEndDate
string<date>

Last day of the trial period (Y-m-d)

cbo
string
Pattern: ^\d{4}(-\d{2})?$
remoteWork
boolean

Remote work

seniorityDate
string<date>

Seniority date

jobLevel
string<uuid>

The job level

jobPositionDescription
string

The job position description

weeklyHours
number<float>

Weekly working hours. Defines the base working time of the contract (see workTimes)

Max legal weekly working hours. Defines the base working time of the contract (see workTimes)

Max legal annual working hours

percentageWorkDay
number<float>

Percentage of workday. Defines the base working time of the contract (see workTimes)

fte
number<float>

The FTE value should be between 0 and 1. Defines the base working time of the contract (see workTimes)

workDays
object[]

Hours to work per day of the week. Defines the base working time of the contract (see workTimes)

workTimes
object[]

Temporary working times of the contract. The base working time covering the whole contract period is always created automatically, so send here only the temporary ones. Omitting the field or sending an empty array creates the contract with just the base working time. The base working time is built from the contract-level weeklyHours, maxLegalWeeklyHours, percentageWorkDay, fte and workDays fields and cannot be sent here; it always carries a null workdayType, regardless of the contract workDayTypeId

Response

200 - application/json
data
object
meta
object