APIを利用して、お客様サーバー側にあるLINEユーザーのLINE UIDを指定し、Message Manager側で作成したセグメントからユーザーを削除する方法
貴社の顧客基盤(CDPやCRMツールなど)で条件に合うユーザーを抽出し、「end_users/remove」APIを実行することで、Message ManagerのセグメントグループからユーザーIDを削除できます。
ユーザーの状態変更や条件変更に応じて、セグメントを最新の状態に保つことが可能です。
「end_users/remove」API
指定したセグメント(ID を指定)からエンドユーザーを削除します。
POST /v2/end_user_segments/:identifier/list/end_users/remove
エラー定義 参照。
成功時に ステータスコード 200 OK と空の JSON オブジェクトを返します。
{}
ステータスコード 404 Not Found とともに、以下の内容を返します。 指定されたセグメントが「エンドユーザーの ID のリストを管理するセグメントでない場合」「利用可能状態でない場合」も同じエラーを返します。
{
"errors": [
{
"path": "__global__",
"code": "resource_not_found"
}
]
}
ステータスコード 404 Not Found とともに、以下の内容を返します。
{
"errors": [
{
"path": "__global__",
"code": "end_user_not_found"
}
]
}
curl -L -X POST https://msgapi.socialplus.jp/v2/end_user_segments/{identifier}/list/end_users/remove \
-H 'Content-Type: application/json; charset=utf-8' \
-H 'Accept: application/json' \
-H "X-API-Key: {API Key}" \
--data-raw '{
"end_user": {
"identifier": {
"type": "line_uid",
"value": "U01234567890123456789012345678901"
}
}
}'
ソーシャルPLUSに関するお問い合わせやご相談など、お気軽にお問い合わせください。