curl --request POST \
--url http://localhost/api/api/blacklist \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"reference_id": "<string>",
"list_name": "HIGH RISK"
}
'{}A blacklist record is created with the name of the subject and the reference_id, We check for a whitelist record with the blacklist name before adding to blacklist
curl --request POST \
--url http://localhost/api/api/blacklist \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"reference_id": "<string>",
"list_name": "HIGH RISK"
}
'{}JWT token obtained from AWS Cognito or custom authentication service
Blacklist record created successfully
Blacklist object