PostHog · Schema
PatchedLLMPromptPublish
A/B TestingAnalyticsFeature FlagsOpen SourceProduct AnalyticsSession Recording
Properties
| Name | Type | Description |
|---|---|---|
| prompt | object | Full prompt payload to publish as a new version. Mutually exclusive with edits. |
| edits | array | List of find/replace operations to apply to the current prompt version. Each edit's 'old' text must match exactly once. Edits are applied sequentially. Mutually exclusive with prompt. |
| base_version | integer | Latest version you are editing from. Used for optimistic concurrency checks. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "#/components/schemas/PatchedLLMPromptPublish",
"title": "PatchedLLMPromptPublish",
"type": "object",
"properties": {
"prompt": {
"description": "Full prompt payload to publish as a new version. Mutually exclusive with edits."
},
"edits": {
"type": "array",
"items": {
"$ref": "#/components/schemas/LLMPromptEditOperation"
},
"description": "List of find/replace operations to apply to the current prompt version. Each edit's 'old' text must match exactly once. Edits are applied sequentially. Mutually exclusive with prompt."
},
"base_version": {
"type": "integer",
"minimum": 1,
"description": "Latest version you are editing from. Used for optimistic concurrency checks."
}
}
}