Go to the table of contents Go to the previous page Go to the next page View or print as PDF
Interfaces > Add URLs and IP addresses to an API-managed category
Add URLs and IP addresses to an API-managed category
Management API Guide | TRITON AP-WEB | v8.3.x
The POST command described in this section can be used to add URLs, IP addresses, and ranges to an API-managed category.
 
JSON request data
Adding URLs and IP addresses by category name
When the API-managed category for a set of URLs or IP addresses is specified by name, the JSON request includes:
*
The transaction ID obtained in the start transaction call
*
The category name (required; must be unique)
This field is used to define which category is returned when a URL or IP address is matched. An error is returned if the category name does not correspond to the ID of an API-managed category already in the system.
*
The URLs to add to the category (optional if IP addresses are present)
*
The IPs (IP addresses or ranges) to add to the category (optional if URLs are present)
For example:
{
"Transaction ID":"44081c08-453a-11e6-a9de-d99213c464e0",
"Category Name":"Malicious XYZ",
"URLs":
[
"http://www.test1.com/test1",
"http://www.test1.com/test2",
"http://www.test1.com/test3"
],
"IPs":
[
"167.34.15.117",
"167.34.16.118-167.34.16.120",
"2045:1221:1231::1331"
"24.56.8.0/23,
"55AF:F451::/32
]
}
Adding URLs and IP addresses by category ID
*
The transaction ID obtained in the start transaction call
*
The category ID
This field is used to define which category is returned when a URL or IP address is matched. An error is returned if the category ID does not match the ID of an API-managed category already in the system.
The field can appear as part of the file path in the URI or in the JSON request.
*
The URLs to add to the category (optional if IP addresses are present)
*
The IPs (IP addresses or ranges) to add to the category (optional if URLs are present)
For example:
{
"Transaction ID":"44081c08-453a-11e6-a9de-d99213c464e0",
"Category ID":1945,
"URLs":
[
"http://www.test1.com/test1",
"http://www.test1.com/test2",
"http://www.test1.com/test3"
],
"IPs":
[
"167.34.15.117",
"167.34.16.118-167.34.16.120",
"2045:1221:1231::1331"
"24.56.8.0/23,
"55AF:F451::/32
]
}
JSON response to adding URLs and IP addresses to categories
The Categories field contains an array of API-managed category IDs and the total number of URLs and IP addresses added to each category.
{
"Categories":
[
"Name": "Malicious XYZ",
"ID" : 1945,
"Totals" :
{
"Added URLs":3,
"Added IPs":5
}
]
}
Response codes
 
JSON for bad request
{
"Error" :
[
"Not in a transaction",
"Other Error Message"
]
}

Go to the table of contents Go to the previous page Go to the next page View or print as PDF
Interfaces > Add URLs and IP addresses to an API-managed category
Copyright 2016 Forcepoint LLC. All rights reserved.