ContactData
Upsert contact data
問い合わせデータを作成・更新します。 既に同一IDの問い合わせデータが存在する場合は、既存のデータを上書きします。 visitorId・userIdはオプショナルのフィールドですが、どちらも未指定の場合、問い合わせデータとWeb行動の紐付けができず、分析ができません。 そのため、どちらかはなるべく指定してください。 また、個人情報が入りうるフィールド(text, additionalNote)が存在する場合、visitorId・userIdのいずれも未指定だとAPIリクエストを受け付けません。(個人情報保護の観点で、ユーザーを指定した問い合わせデータの消去を後からできるようにするためです)
Required Scope
APIの実行に必要なScopeです。
beta.rightsupport.contactData.upsert
Required Role
管理画面でScopeを追加する際に必要な権限です。
RightSupport > RightSupportの編集
post/v2beta/rightsupport/contactData/upsert
Request
- Base URLhttps://api.karte.io
- URLhttps://api.karte.io/v2beta/rightsupport/contactData/upsert
- AuthHTTP bearer
Headers
x-karte-apistring
今後利用する可能性のある予約語です。現在は設定不要です。
authorizationstring
認証情報を含むトークンです。"Authorization" ヘッダーに Bearer <token> の形式で設定してください。
content-typestring
リクエストのコンテンツタイプを指定します。通常は application/json を使用してください。
Request body
Example request
{
"id": "c-id",
"contactedAt": "2022-09-29T05:39:56Z",
"channel": "call",
"contactPointId": "cp-id",
"userId": "u-id",
"visitorId": "AaBbCcD1",
"reasonId": "r-id",
"urlToContactDetail": "https://example.com/c-id",
"text": "問い合わせ内容本文です。",
"additionalNote": "追加メモの文章です。"
}Response
A successful response.
Example response
{
"success": true
}Changes
No recorded changes to this operation across all 1 revision of this API.