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

Get a code to link your LINE account.

POST/api/v1/chat-channels/{chat_channel_id}/pairchat_channels:write
注記

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

A one-time code, valid for ten minutes, that the person sends to the staff channel as link <pairing_code> to link their LINE account to their Docwize user. Needs Create Channel Pairing Codes for an active internal user. The channel must be enabled, and the account must not already be linked to it.

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

パラメーター​

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

応答​

ステータス説明本文
200Success.application/json ChatPairingCode または object
400invalid_versionapplication/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
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 のコードです。各コードからそのページに移動できます。

スキーマ​

ChatPairingCode​

フィールド型必須説明
commandstring必須The message to send to the channel: link <pairing_code>.
expires_atstring (date-time)必須
pairing_codestring必須The code the person sends to the channel.