v1
latestOpenAPI 3.1.02026-07-242735131.1 MBSandbox
Reassign default legal entity
Set a different legal entity as the company's default entity.
The default entity is used when creating new employments without an explicit entity. This endpoint is only available in Sandbox, otherwise it will respond with a 404.
put/v1/sandbox/companies/{company_id}/default-legal-entity/{legal_entity_id}
Path parameters
company_idstring required
Company ID
legal_entity_idstring required
Legal Entity ID to set as the new default
Headers
Authorizationstring required
Requires a Company-scoped access token obtained through the Authorization Code flow or the Refresh Token flow.
The refresh token needs to have been obtained through the Authorization Code flow.
Response
Success
Example response
{
"data": {
"status": "ok"
}
}