How to obtain a category by ID from the FWS API

Individual categories can be retrieved by using the following URL along with the category ID.

 

 Method URL
 GET  https://api.fairwarningsoftware.com/v1.1.1/category/[id]

 

 Status Response
 200  {
    "category_id": <category_id>,
    "company_id": <company_id>,
    "category_active": <category_active>,
    "category_parent_id": <category_parent_id>,
    "category_name": <category_name>,
    "category_parent_name": <category_parent_name>
}
401  {"error":"The API keys provided are invalid."}
403  {"error":"API keys are missing."}
500  {"error": <custom error>}

 

 Field  Type Description
category_id int The unique identifier for the category
company_id int The ID for your company
category_active bool Whether the category is active or not
category_parent_id int The ID of the current category's parent category
category_name string The name of the category
category_parent_name string The name of the parent category