メインコンテンツへスキップ
DELETE
Delete Cards for User

Rate Limit

The rate limit is 50K RPM (Requests Per Minute) and is applicable at the workspace (App) level.

承認

Authorization
string
header
必須

Authentication is done via Basic Auth. This requires a base64-encoded string of your credentials in the format 'username:password'.

  • Username: Use your MoEngage workspace ID (also known as the App ID). You can find it in the MoEngage dashboard at Settings > Account > API keys.
  • Password: Use the Campaign report/Business events/Custom templates/Catalog API/Inform Report key from Settings > Account > API keys. Its auth type is Basic Auth (Legacy). This API accepts only this legacy key, so a key you create with + Create new key doesn't work with it.

For the key that each MoEngage API accepts, refer to API Keys by Feature.

ヘッダー

MOE-APPKEY
string
必須

This is the Workspace ID of your MoEngage account that must be passed with the request. You can find it in the MoEngage dashboard at Settings > Account > API keys.

ボディ

application/json

You must provide either 'uid' or 'unique_id'.

Generating unique_id

The unique_id refers to the device identifier and is platform-specific.

  • Android
  • iOS: MoEngageSDKCore.getMoEngageDeviceId(completionHandler: @escaping UserInfoHandler)
campaign_ids
string[]
必須

List of campaign IDs whose cards should be deleted for the user. In the case of a periodic campaign, if the campaign ID of the parent campaign is specified, the cards will get deleted for the child campaigns as well.

uid
string

The uid is the unique MoEngage Standard ID (Email ID Standard or Mobile Number Standard) that identifies the user.

unique_id
string

The unique_id is the platform-specific device identifier. Refer to Generating unique_id for details.

platforms
enum<string>[]

Specify platforms to delete cards from. If omitted, the cards specified for deletion will be deleted from all the platforms they are associated with. Allowed Values: ANDROID, IOS, WEB

利用可能なオプション:
ANDROID,
IOS,
WEB,
android,
ios,
web

レスポンス

This response is returned when the request is processed successfully.

status
boolean

This field represents whether the request was successful and contains true when the request was successful and false otherwise.

request_id
string

Unique identifier that denotes the request.

data
object | null

This field contains the platform-specific results of the delete operation.

title
string | null

This field is present in the response body only when the request is unsuccessful and contains the error type.

description
string | null

This field is present in the response body only when the request is unsuccessful and contains the error description.

code
string | null

This field is present in the response body only when the request is unsuccessful and contains the error code.

error
string | null

Error message if status is false.