Skip to main content

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.

Scopeconnectors:write (sensitive)
AsynchronousNo
MCP toollink_freee_person
Portal permissionslink_freee_people

Parameters​

NameInTypeRequiredDescription
freee_person_idpathstringRequired
Docwize-Versionheaderstring (date)Optional
Idempotency-KeyheaderstringOptionalmax 255

Request body​

Content typeType
application/jsonFreeePersonLinkRequestInput

Responses​

StatusDescriptionBody
200Success.application/json FreeePersonLink or object
400invalid_version, malformed_jsonapplication/problem+json Problem
401token_expired, unauthenticatedapplication/problem+json Problem
403forbidden, insufficient_scope, token_owner_inactiveapplication/problem+json Problem
404not_foundapplication/problem+json Problem
405method_not_allowedapplication/problem+json Problem
406not_acceptableapplication/problem+json Problem
409conflict, idempotency_in_progressapplication/problem+json Problem
413payload_too_largeapplication/problem+json Problem
415unsupported_media_typeapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422idempotency_key_reused, validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

Errors​

The problem codes this operation can answer with. Each code links to its page.

Schemas​

FreeePerson​

FieldTypeRequiredDescription
freee_person_idstringRequiredThe person's row in the person register.
namestring or nullRequired
referencestring or nullRequired
FieldTypeRequiredDescription
freee_company_idstringRequired
freee_employee_idstringRequired
freee_personFreeePersonRequired
is_newbooleanRequiredFalse when the person was already linked to this employee: nothing changed.

FreeePersonLinkRequestInput​

FieldTypeRequiredDescription
freee_company_idstringRequiredThe connected freee company you saw (get_freee_connection): refused with 409 when the connection moved to another.
freee_employee_idstringRequiredAn employee from list_freee_employees.