Link a person to a freee employee.
POST/api/v1/freee-people/{freee_person_id}/linkconnectors:write
Records, in the link register, that the person is that freee employee of the connected company. The Portal re-reads freee's employee list and refuses (409) an employee that is not on it, a company other than the connected one, and an employee already linked to another person; linking the same pair again changes nothing (is_new false). Needs Link Freee People.
| Scope | connectors:write (sensitive) |
| Asynchronous | No |
| MCP tool | link_freee_person |
| Portal permissions | link_freee_people |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
freee_person_id | path | string | Required | |
Docwize-Version | header | string (date) | Optional | |
Idempotency-Key | header | string | Optional | max 255 |
Request body
| Content type | Type |
|---|---|
application/json | FreeePersonLinkRequestInput |
Responses
| Status | Description | Body |
|---|---|---|
200 | Success. | application/json FreeePersonLink or object |
400 | invalid_version, malformed_json | application/problem+json Problem |
401 | token_expired, unauthenticated | application/problem+json Problem |
403 | forbidden, insufficient_scope, token_owner_inactive | application/problem+json Problem |
404 | not_found | application/problem+json Problem |
405 | method_not_allowed | application/problem+json Problem |
406 | not_acceptable | application/problem+json Problem |
409 | conflict, idempotency_in_progress | application/problem+json Problem |
413 | payload_too_large | application/problem+json Problem |
415 | unsupported_media_type | application/problem+json Problem |
421 | wrong_region | application/problem+json Problem |
422 | idempotency_key_reused, validation_failed | application/problem+json Problem |
500 | internal_error | application/problem+json Problem |
503 | tenant_unavailable, unavailable | application/problem+json Problem |
504 | timeout | application/problem+json Problem |
Errors
The problem codes this operation can answer with. Each code links to its page.
Schemas
FreeePerson
| Field | Type | Required | Description |
|---|---|---|---|
freee_person_id | string | Required | The person's row in the person register. |
name | string or null | Required | |
reference | string or null | Required |
FreeePersonLink
| Field | Type | Required | Description |
|---|---|---|---|
freee_company_id | string | Required | |
freee_employee_id | string | Required | |
freee_person | FreeePerson | Required | |
is_new | boolean | Required | False when the person was already linked to this employee: nothing changed. |
FreeePersonLinkRequestInput
| Field | Type | Required | Description |
|---|---|---|---|
freee_company_id | string | Required | The connected freee company you saw (get_freee_connection): refused with 409 when the connection moved to another. |
freee_employee_id | string | Required | An employee from list_freee_employees. |