Skip to main content
POST
/
api
/
v1
/
settings
/
allow_deny_entries
Create an allow/deny list entry
curl --request POST \
  --url https://api.ocean.security/api/v1/settings/allow_deny_entries \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <api-key>' \
  --data '
{
  "value": "<string>",
  "comment": "<string>"
}
'
{
  "results": {
    "comment": "<string>",
    "created_at": "<string>",
    "created_by": "<string>",
    "id": "<string>",
    "value": "<string>"
  },
  "status": 123
}

Authorizations

X-Api-Key
string
header
required

API key for authentication

Headers

X-Api-Key
string
required

Authentication API Key

Body

application/json

Allow/deny entry to create

entry_type
enum<string>
required
Available options:
domain,
ip,
email_address
list
enum<string>
required
Available options:
allow,
deny
value
string
required
comment
string
verdict_scope
enum<string>
Available options:
global,
graymail

Response

Created entry

results
object
status
integer