Contracts > LegalEntityChange
Move an employee to another legal entity.
Changed onCreates a new contract under the target legal entity, plus its first contract version, effective on the given date. The employee's own legal entity follows on that date, when the new version becomes their reference contract version — so the employee still belongs to the previous legal entity until then. The country data of the new version is resolved against the target legal entity's template, so fields that only existed under the previous one are dropped. Requires the legal entity change feature to be enabled for the company.
post/api/2026-10-01/resources/contracts/legal_entity_changes
Request
- Base URLhttps://api.factorialhr.com
- URLhttps://api.factorialhr.com/api/2026-10-01/resources/contracts/legal_entity_changes
- Auth
- OAuth 2Authorization code: https://id.factorialhr.com/oauth/authorizeToken URL: https://id.factorialhr.com/api/oauth/token scopes: contracts
- or API key in header x-api-key
Request body
Example request
{
"target_legal_entity_id": "1"
}Response
CREATED
Example response
{
"contract_version_id": "1",
"contracts_contract_id": "1",
"employee_id": "1",
"effective_on": "2024-10-06",
"country": "es",
"job_title": "Designer",
"job_catalog_level_id": "1",
"job_catalog_tree_node_uuid": "jobcatalog_treelevel-14",
"starts_on": "2024-10-06",
"ends_on": "2024-10-06",
"trial_period_ends_on": "2024-10-06",
"salary_amount": 1000,
"salary_frequency": "yearly",
"working_week_days": "monday,tuesday,wednesday,thursday,friday",
"working_hours": 40,
"working_hours_frequency": "week",
"max_legal_yearly_hours": 2000,
"maximum_weekly_hours": 40,
"bank_holiday_treatment": "workable",
"working_time_percentage_in_cents": 8000,
"annual_working_time_distribution": "limit_workdays",
"min_rest_minutes_between_days": 2880,
"max_work_minutes_per_day": 480,
"max_work_days_in_row": 6,
"min_rest_hours_in_row": 36,
"created_at": "2024-10-06",
"updated_at": "2024-10-06",
"version_data": {
"country_data": {
"country": "es",
"fields": [
{
"name": "contract_type",
"field_name": "Tipo de contrato",
"value_label": "Indefinido",
"value_id": "1"
}
],
"template_fragments": {
"company_fragment_id": "1",
"country_fragment_id": "2",
"legal_entity_fragment_id": "3"
}
}
},
"contracts_es_tariff_group_id": "1",
"es_cotization_group": 1,
"es_contract_observations": "review contract for job promotion",
"es_job_description": "Designer",
"es_contract_type_id": "1",
"es_working_day_type_id": "1",
"es_education_level_id": "1",
"es_professional_category_id": "1",
"fr_employee_type": "apprenti",
"fr_jours_par_an": 200,
"fr_coefficient": "1",
"fr_contract_type_id": "1",
"fr_level_id": "1",
"fr_step_id": "1",
"fr_mutual_id": "1",
"fr_professional_category_id": "1",
"fr_work_type_id": "1",
"de_contract_type_id": "1",
"de_base_salary_type_id": "1",
"pt_contract_type_id": "1"
}Changes
- info
endpoint added
- info