Go to the table of contents Go to the previous page Go to the next page View or print as PDF
Interfaces > Add API-managed categories
Add API-managed categories
Management API Guide | Forcepoint Web Security | v8.5.x
The POST command described in this section can be used to add categories as containers for URLs and IP addresses.
 
JSON request data
The JSON request includes:
*
The transaction ID obtained in the start transaction call
*
The category name (required; must be unique)
An error is returned if the category name is not unique.
*
The category description (optional; blank by default)
*
The ID of the parent category
*
0 is the top-level category, and can be specified as the parent.
*
*
For example:
{
"Transaction ID":"44081c08-453a-11e6-a9de-d99213c464e0",
"Categories":
[
{
"Category Name": "Malicious XYZ",
"Category Description" : "Categories found by XYZ engine",
"Parent": 0
},
{
"Category Name": "Malicious ABC",
"Category Description" : "Categories found by ABC engine",
"Parent" : 128
}
]
}
JSON response to add categories request
The JSON response includes the API-managed category names added to the transaction. For example:
{
"Categories":
[
{"Category Name":"Malicious XYZ",
{"Category Name":"Malicious ABC"
]
}
Response codes
 
JSON for bad request
{
"Error" :
[
"Bad JSON format.",
"Not in a transaction",
"Other Error Message"
]
}
 
Note 

Go to the table of contents Go to the previous page Go to the next page View or print as PDF
Interfaces > Add API-managed categories
Copyright 2022 Forcepoint. All rights reserved.