Skip to main content
PUT

Update active contract

Scope:team:employees.write
https://api.holded.com/api/v2/employees/{employeeId}/contract

Updates the active contract of an employee. This is a full-replacement operation — ALL fields must be provided. Workflow: (1) Call GET /api/v2/employees/{employeeId}/contract to get current contract data. (2) Send ALL fields from that response back here, modifying only the ones you want to change. Use when the user asks to update "puesto", "cargo", "salario", "jornada", or any contract field. Does not modify salary history — use the salary-increase endpoints for that.

Parameters

Path parameters

employeeIdstringrequired

Employee ID

Request body

object
employeestring | nulloptional

Employee full name

nifstring | nulloptional

Tax identification number (NIF/NIE)

contractTypeintegerrequired

Regulatory contract type code (tipo de contrato SEPE)

contributionTypestring | nulloptional

Social Security contribution type (e.g. "general")

royalDecreestring | nulloptional

Royal Decree code (Real Decreto)

startDatestring<date-time>required

Contract start date in ISO 8601 format

seniorityDatestring<date-time> | nulloptional

Employee real seniority (antigüedad) date in ISO 8601 format; must be on or before startDate. When omitted or null, the stored seniority date of the contract is kept, so moving startDate before it requires sending seniorityDate as well. To correct startDate, send seniorityDate as well: it is not moved along. Contracts without a stored seniority date read it as startDate

endDatestring<date-time> | nulloptional

Contract end date; null for open-ended contracts

educationalLevelstring | nulloptional

Educational level code

jobTitlestring | nulloptional

Job title (puesto/cargo)

professionalCategorystring | nulloptional

Professional category

scheduleHoursnumber | nulloptional

Weekly scheduled hours

scheduleModestring | nulloptional

Schedule mode string (e.g. "week", "fixed")

workingDays[]string[] | nulloptional

Working days of the week

probationPeriodDaysinteger | nulloptional

Probation period in days

vacationDaysnumber | nulloptional

Vacation days per year

isManuallyActivatedboolean | nulloptional

Whether the contract was manually activated

workModalitystring | nulloptional

Work modality (e.g. "office", "remote", "hybrid")

salarynumberoptional

Gross salary amount

salaryIntervalstringoptional

Salary interval string (e.g. "yearly", "monthly")

salaryPaymentsnumber | nulloptional

Number of salary payments per year

Request

python
import requests

url = "https://api.holded.com/api/v2/employees/{employeeId}/contract"
headers = {
    "Authorization": "Bearer YOUR_API_KEY",
    "Accept": "application/json",
}

payload = {
    "employee": "string",
    "nif": "string",
    "contractType": 421,
    "contributionType": "string",
    "royalDecree": "string",
    "startDate": "2024-01-15T10:30:00Z",
    "seniorityDate": "2024-01-15T10:30:00Z",
    "endDate": "2024-01-15T10:30:00Z",
    "educationalLevel": "string",
    "jobTitle": "string",
    "professionalCategory": "string",
    "scheduleHours": 0,
    "scheduleMode": "string",
    "workingDays": [
        "string"
    ],
    "probationPeriodDays": 0,
    "vacationDays": 0,
    "isManuallyActivated": false,
    "workModality": "string",
    "salary": 20000,
    "salaryInterval": "string",
    "salaryPayments": 0
}
response = requests.put(url, headers=headers, json=payload)
print(response.json())

Responses

Success responses

204Resource deleted

Error responses

400Validation errorapplication/json
401Invalid or missing API keyapplication/json
403Insufficient permissionsapplication/json
404Employee or active contract not foundapplication/json
429Rate limit exceededapplication/json