Remove Item
POST /api/v1/zoloz/blacklist/removeitem
This API is used to delete an item from a target list. This API is idempotent.
Structure
Request parameters
Field name | Data type | Max length | Description |
bizId | String | 32 | Mandatory. A unique ID maintained by client for tracing purpose. Note: ZOLOZ server does not perform uniqueness check on this field. For better tracking, it is strongly recommended client guarantee the uniqueness of this ID. |
itemType | String | 8 | Required. Specify the type of the item to be removed. Valid values include:
|
itemId | String | 64 | Mandatory. The ID of the item to be removed. |
Response parameters
Field name | Data type | Description |
result | Contains the result code, result status, and a result message. | |
removedItemId | String | Available if the item is removed successfully. |
Result
Common result codes
For the full list of common result codes, see the Common error codes section in the Error handling topic.
API-specific result codes
The following table shows the possible result codes that are specific for this API.
resultCode | resultStatus | Description |
SUCCESS | S | The API call is successful. |
INVALID_ARGUMENT | F | Input parameters are invalid. For more information about which parameter is invalid, check the result message or the related log. |
BLACKLIST_ITEM_NOT_FOUND | F | The requested item does not exist. |
SYSTEM_ERROR | F | Other internal errors. For more information about the error details, check the result message that is returned and the related log. |
Sample
Request sample
Here is an example request to remove a FACE item.
{
"bizId": "some-random-biz-id",
"itemId": "86451b883c80372",
"itemType": "FACE"
}
Response Sample
Here is an example when item is removed successfully.
{
"removedItemId":"86451b883c80372",
"result":{
"resultCode":"SUCCESS",
"resultMessage":"Success",
"resultStatus":"S"
}
}