Classify
Classify
Classify specified files with the provided tags.
Request Body
| Field | Type | Description |
|---|---|---|
datasource_id | UUID | Id of the data connector to classify. |
file_names | Optional[List[str]] | Names of specific files to classify. |
tag_ids | Optional[List[str]] | Ids of the tags to classify with (if tag_datas not provided). |
tag_datas | Optional[List[Tag]] | Inline tag definitions, each naming its tag by tag_id (if tag_ids not provided). |
overwrite | bool | Whether to overwrite existing tags. Default: false |
job_id | Optional[str] | Custom job ID for tracking the classification task. |
soft_run | bool | If true, classification will not save to Deasy and will return results. Default: false |
taxonomy_id | Optional[UUID] | Id of the taxonomy to classify with (if hierarchy_data not provided). |
hierarchy_data | Optional[Dict] | Hierarchy/taxonomy data to use for classification. Default: {} |
dataslice_id | Optional[str] | ID of the dataslice to use for file filtering. |
Response
- 200: Classification completed or job started successfully
- Returns:
{ "message": str, "job_id": str, "results": Optional[Dict] }
- Returns:
- 500: Internal Server Error
Example
POST
Python
Authorizations
Body
application/json
- SparkClassifyRequest
- ArgoClassifyRequest
- LocalClassifyRequest
