Categories are used to describe the different functions of your contractor organizations. You can use them to sort your organizations and make it easier to report on them and create triggers.
Use the API to retrieve your categories list or add, update or delete a category.
Learn more about contractor organization categories in the OnLocation Help Center.
Returns a list of contractor organization categories.
List of contractor organization categories
Invalid Input
Access denied to this resource
Internal server error
curl -i -X GET \ https://api.whosonlocation.com/v1/sp/org/category
[- {
- "id": 1,
- "name": "Transport Services",
- "created": "2023-05-12 09:30:00"
}
]
Creates a new contractor organization category with the provided details.
Created resource
Invalid input
Access denied to this resource
Internal server error
{- "name": "Transport Services"
}
{- "id": 1,
- "name": "Transport Services",
- "created": "2023-05-12 09:30:00"
}
Retrieves a contractor organization category by its ID.
Contractor organization category found
Access denied to this resource
Contractor organization category not found
Internal server error
curl -i -X GET \ https://api.whosonlocation.com/v1/sp/org/category/:id
{- "id": 1,
- "name": "Transport Services",
- "created": "2023-05-12 09:30:00"
}
Updates the details of a contractor organization category.
Updated resource
Invalid Input
Access denied to this resource
Contractor organization category not found
Internal server error
{- "name": "Transport Services"
}
{- "id": 1,
- "name": "Transport Services",
- "created": "2023-05-12 09:30:00"
}
Deletes a contractor organization category by its ID.
Contractor organization category deleted successfully
Access denied to this resource
Contractor organization category not found
Not deleted as contractor organizations found under this category
Internal server error
curl -i -X DELETE \ https://api.whosonlocation.com/v1/sp/org/category/:id