ontologies
Upload Ontology
Upload a single ontology file for later use in cognify operations.
Request Parameters
- ontology_key (str): User-defined identifier for the ontology.
- ontology_file (UploadFile): Single OWL format ontology file
- description (Optional[str]): Optional description for the ontology.
Response
Returns metadata about the uploaded ontology including key, filename, size, and upload timestamp.
Error Codes
- 400 Bad Request: Invalid file format, duplicate key, multiple files uploaded
- 500 Internal Server Error: File system or processing errors
POST
Upload Ontology
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
multipart/form-data
Response
Successful Response
The response is of type Response Upload Ontology Api V1 Ontologies Post · object.
Previous
Delete OntologyDelete an uploaded ontology by key.
## Path Parameters
- **ontology_key** (str): The key of the ontology to delete.
## Error Codes
- **400 Bad Request**: Ontology key not found
- **500 Internal Server Error**: File system errors
Next
Upload Ontology