Patronus AI APIProduct context
Create Product Context Revision
POST
/
v1
/product-context-revision
Authorization
X-API-KEY
<token>
In: header
Request Body
application/json
Requiredproject_id
RequiredProject Id
Format:
"uuid"
product_context_id
Product Context Id
product_context_name
Product Context Name
product_context_description
Product Context Description
prompt_revision_id
RequiredPrompt Revision Id
Format:
"uuid"
product_description
RequiredProduct Description
Minimum length:
1
Maximum length: 100000
product_context
RequiredProduct Context
metadata
Metadata
Optional JSON metadata to associate with this revision
create_only_if_not_exists
Create 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:
false
Successful Response