Patronus AI APIError taxonomy
Create Error Taxonomy Revision
Create a new error taxonomy revision.
If error_taxonomy_id is provided, creates a new revision of an existing error taxonomy definition.
If error_taxonomy_id is not provided but error_taxonomy_name is, creates a new error taxonomy
definition with its first revision.
project_id must be provided.
Returns the newly created error taxonomy revision.
POST
/
v1
/error-taxonomy-revision
Authorization
X-API-KEY
<token>
In: header
Request Body
application/json
Requiredproject_id
RequiredProject Id
Format:
"uuid"
error_taxonomy_id
Error Taxonomy Id
error_taxonomy_name
Error Taxonomy Name
error_taxonomy_description
Error Taxonomy Description
taxonomy_type
Taxonomy Type
Default:
"user"
Value in: "system" | "user"
create_only_if_not_exists
Create Only If Not Exists
If true, creation will fail if a error taxonomy with the same name already exists in the project. Only applies when creating a new error taxonomy (not providing error_taxonomy_id).
Default:
false
body
RequiredErrorTaxonomyNode
metadata
Metadata
Optional JSON metadata to associate with this revision
Successful Response