GET
Get active contract
Scope:
team:employees.readhttps://api.holded.com/api/v2/employees/{employeeId}/contractReturns all fields of the employee's active contract. Use this as the first step before updating a contract field: fetch the current data here, then send ALL fields back to the PUT endpoint modifying only what you want to change. Field names in this response match exactly the field names expected by the PUT endpoint.
Parameters
Path parameters
employeeId
stringrequiredEmployee ID
Request
python
import requests
url = "https://api.holded.com/api/v2/employees/{employeeId}/contract"
headers = {
"Authorization": "Bearer YOUR_API_KEY",
"Accept": "application/json",
}
response = requests.get(url, headers=headers)
print(response.json())Responses
Response
json
{}Success responses
200Active contract dataapplication/jsonobject
Error responses
401Invalid or missing API keyapplication/json403Insufficient permissionsapplication/json404Employee or active contract not foundapplication/json429Rate limit exceededapplication/json