Update prompt variables
POST/api/v1/llm/update-prompt-variables
Agent Profiles: merges prompt variables into the thread for late-binding. The variables are re-rendered into the active profile's prompt on the next turn. Returns the merged conversation settings.
Prompt-variable update masks
When you supply updateMask:
- Masked keys are authoritative. A masked key whose value is
nullor absent clears that variable. - Unmasked keys are untouched. Variables not listed in the mask keep their current values, even if you include them in the payload.
Without updateMask:
- Supplied keys overwrite or add.
- Null or empty values clear the variable.
- Keys you omit are not touched.
Request
Responses
- 200
Prompt variables merged
Document ID: DOC-MA-conversations-api-updatePromptVariables. Section identities and revisions.
| Section | Stable reference |
|---|---|
| Overview | DOC-MA-conversations-api-updatePromptVariables#overview |
| Request | DOC-MA-conversations-api-updatePromptVariables#request |
| Responses | DOC-MA-conversations-api-updatePromptVariables#responses |