Skip to main content
PATCH
Update an employee
Beta. Melso does not serve this operation yet, and its fields can still change. See what is live.
In profile only the keys sent change, and tax replaces the whole modelo 145. Send active: false with end_date for a leaver.

Authorizations

Authorization
string
header
required

A company API key, mk_live_…, that the company's owner creates in the Melso app under Settings, Connect your AI, API keys. It works in that one company with the owner's authority. Test keys (mk_test_…) are not issued. Keep the key on your servers. See Authentication.

Path Parameters

company_id
string<uuid>
required

The company's ID. Every company-scoped call works in exactly this company.

employee_id
string<uuid>
required

Body

application/json
name
string
start_date
string<date>
end_date
string<date> | null
active
boolean

false for a leaver, with end_date.

profile
object

The contract terms and the modelo 145. Send only what the person confirmed.

Response

The employee.

id
string<uuid>
required
name
string
required
start_date
string<date>
required
active
boolean
required
end_date
string<date> | null
settled_on
string<date> | null

The day an approved month's settlement (finiquito) ended the contract.

incomplete
string[]

What the payroll still needs from this employee.

profile
object

The contract terms and the modelo 145. Send only what the person confirmed.