Delete Customer Data API¶
This API is Used to delete customer data.
Note
Delete User will not proceed if the requested user is:
* An account owner or belongs to one or more accounts.
* The bot owner or co-developer for one or more bots.
Method | DELETE |
Endpoint | https://{{host}}/api/public/bot/eraseUsersData
|
Content Type | application/json
|
Authorization | auth: {{JWT}}
|
API Scope |
|
Path Parameters¶
PARAMETER | DESCRIPTION |
host | Environment URL, for example, https://bots.kore.ai |
Sample Request¶
curl -X DELETE \
'https://{{host}}/api/public/bot/eraseUsersData' \
--header 'Content-Type: application/json' \
--header 'auth: YOUR_JWT_ACCESS_TOKEN' \
--data '{
userIds: ["u-xxxxxxxx-xxxx-xxx-xxxx-xxxxxxxxxxx","u-xxxxxxxx-xxxx-xxx-xxxx-xxxxxxxxxxx","u-xxxxxxxx-xxxx-xxx-xxxx-xxxxxxxxxxx"],
botIds: ["st-xxxxxxxx-xxxx-xxx-xxxx-xxxxxxxxxxxx","st-xxxxxxxx-xxxx-xxx-xxxx-xxxxxxxxxxxx","x-xxxxxxxx-xxxx-xxx-xxxx-xxxxxxxxxxxx"]
RemoveDataFromAllBots: true // optional
}'
Body Parameters¶
PARAMETER | DESCRIPTION |
userIds | The array of user Ids whose details have to be deleted, for example, [“userId1”, “userId2”]. It can be user email id or enterprise assigned unique id. The following are acceptable values for this field:
|
botIds | The array of bot Ids from where the user details have to be deleted, for example, [“botId1”, “botId2”]
|
RemoveDataFromAllBots
(optional) |
Determines if the specified users details have to be removed from all the Bots. Set to true or false.
|
Note
The execution status of this API can be viewed by executing Delete Customer Data Status API