Patronus AI APIProduct context
Create Product Context Revision
POST
/
v1/product-context-revisionAuthorization
X-API-KEY<token>
In: header
Request Body
application/jsonRequiredproject_idRequiredProject Id
Format:
"uuid"product_context_idProduct Context Id
product_context_nameProduct Context Name
product_context_descriptionProduct Context Description
prompt_revision_idRequiredPrompt Revision Id
Format:
"uuid"product_descriptionRequiredProduct Description
Minimum length:
1Maximum length: 100000product_contextRequiredProduct Context
metadataMetadata
Optional JSON metadata to associate with this revision
create_only_if_not_existsCreate Only If Not Exists
If true, creation will fail if a product context with the same name already exists in the project. Only applies when creating a new product context (not providing product_context_id).
Default:
falseSuccessful Response
