Get Started
Data categorization
Learn how to classify and structure resources using WetroCloud.
When to Use the Category Endpoint
Use the /v1/category/
endpoint when:
- Resources need to be organized into categories.
- JSON schemas and rules are required to define category structure.
How to Categorize a Resource
Send a POST
request to the /v1/category/
endpoint with the required parameters in the body.
Required Parameters
Parameter | Type | Description |
---|---|---|
resource | String | Description of the resource to be categorized. |
type | String | Type of resource (e.g., “file”, “Web”). see full list of accepted types here |
json_schema | String | The JSON schema for defining the category. |
json_schema_rules | String | Rules to apply to the JSON schema. |
Request Example
Successful Response
Field | Description |
---|---|
response | JSON object structured as per the provided schema. |
tokens | The number of tokens used for processing the request. |
success | Indicates whether the operation was successful. |