Update active contract
team:employees.writehttps://api.holded.com/api/v2/employees/{employeeId}/contractUpdates 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
stringrequiredEmployee ID
Request body
Employee full name
Tax identification number (NIF/NIE)
Regulatory contract type code (tipo de contrato SEPE)
Social Security contribution type (e.g. "general")
Royal Decree code (Real Decreto)
Contract start date in ISO 8601 format
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
Contract end date; null for open-ended contracts
Educational level code
Job title (puesto/cargo)
Professional category
Weekly scheduled hours
Schedule mode string (e.g. "week", "fixed")
Working days of the week
Probation period in days
Vacation days per year
Whether the contract was manually activated
Work modality (e.g. "office", "remote", "hybrid")
Gross salary amount
Salary interval string (e.g. "yearly", "monthly")
Number of salary payments per year
Request
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 deletedError responses
400Validation errorapplication/json401Invalid or missing API keyapplication/json403Insufficient permissionsapplication/json404Employee or active contract not foundapplication/json429Rate limit exceededapplication/json