Create a Blocked IP
Description:
You can use this API to create a blocked IP address entry.
JSON Params:
- ip(mandatory)- This param is used to denote the IP address in question
- app_ids (Note: for all apps, app_ids is not required)- This param is used to denote the app ID/ website ID
- comment- This param is used to add comments on why the particular IP address was blocked
OAuth Scope:
SalesIQ.blockedips.CREATE
URL:
Copiedhttps://{zohosalesiq_server_uri}/api/v2/{screenname}/blockedips
Example
Copiedhttps://salesiq.zoho.com/api/v2/zylker/blockedips
Payload:
Copied{
"ip": "1.1.1.1",
"app_ids": [
"33000000000047",
"33000000000048"
],
"comment": ""
}
Sample Response
Copied{
"object": "list",
"url": "/api/v2/blockedips",
"total": "2",
"data": [
{
"status": "blocked",
"blocked_by": "33000000000005",
"app": {
"name": "Danny",
"id": "33000000000047"
},
"comments": [],
"modified_time": "1550753082726",
"ip": "1.1.2.2",
"no_of_comments": "0",
"id": "33000000004003"
},
{
"status": "blocked",
"blocked_by": "33000000000005",
"app": {
"name": "Hank",
"id": "33000000000048"
},
"comments": [],
"modified_time": "1550753082726",
"ip": "1.1.2.2",
"no_of_comments": "0",
"id": "33000000004003"
}
]
}