curl --request PUT \
--url https://apix.us.amity.co/api/v2/blacklist/records/{ruleId} \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>' \
--header 'X-API-Key: <api-key>' \
--data '{
"ruleId": "<string>",
"isEnabled": true
}'
{
"status": "<string>",
"data": {
"ruleId": "<string>",
"regex": "<string>",
"isMatchExactWord": true,
"isEnabled": true,
"isDeleted": true,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
}
Update rule of blacklist.
curl --request PUT \
--url https://apix.us.amity.co/api/v2/blacklist/records/{ruleId} \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>' \
--header 'X-API-Key: <api-key>' \
--data '{
"ruleId": "<string>",
"isEnabled": true
}'
{
"status": "<string>",
"data": {
"ruleId": "<string>",
"regex": "<string>",
"isMatchExactWord": true,
"isEnabled": true,
"isDeleted": true,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
}
Rule ID to be updated.
Rules information to be updated.
The body is of type object
.
rule of blacklist Information
The response is of type object
.