メインコンテンツまでスキップ

Link a person to a freee employee.

POST/api/v1/freee-people/{freee_person_id}/linkconnectors:write
注記

このページの操作の説明は、API の OpenAPI 文書のとおり英語で記載しています。

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.

スコープconnectors:write (機密性の高いスコープ)
非同期いいえ
MCP ツールlink_freee_person
Portal の権限link_freee_people

パラメーター​

名前場所型必須説明
freee_person_idpathstring必須
Docwize-Versionheaderstring (date)任意
Idempotency-Keyheaderstring任意max 255

リクエスト本文​

Content-Type型
application/jsonFreeePersonLinkRequestInput

応答​

ステータス説明本文
200Success.application/json FreeePersonLink または 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

エラー​

この操作が返す可能性のある problem のコードです。各コードからそのページに移動できます。

スキーマ​

FreeePerson​

フィールド型必須説明
freee_person_idstring必須The person's row in the person register.
namestring または null必須
referencestring または null必須
フィールド型必須説明
freee_company_idstring必須
freee_employee_idstring必須
freee_personFreeePerson必須
is_newboolean必須False when the person was already linked to this employee: nothing changed.

FreeePersonLinkRequestInput​

フィールド型必須説明
freee_company_idstring必須The connected freee company you saw (get_freee_connection): refused with 409 when the connection moved to another.
freee_employee_idstring必須An employee from list_freee_employees.