Update an AI variable
Update an existing AI variable (AI research). Prompt placeholders must come from the relevant fields endpoint output for this workspace; generic conversation placeholders such as previousMessage are not supported here.
When prompt is updated, Enginy regenerates the internal editor format from the new prompt text.
Use the contact/company fields endpoints as the source of truth for prompt placeholders. Do not assume campaign-only aliases like previousMessage are valid in manual/public AI-variable updates.
Required scope:
AI_VARIABLES_WRITERate limit: 30 requests per minute
Authorizations
Path Parameters
The AI variable ID
Body
New prompt template. Enginy regenerates the internal prompt representation from this value. Use GET /v1/contacts/fields or GET /v1/companies/fields to discover the valid placeholder names for this workspace. Unsupported generic placeholders such as {previousMessage} are rejected in manual/public AI-variable updates.
1Optional new model ID.
Optional new output contract.
Enable or disable Deep Search.
Optional new entity.
CONTACT, COMPANY Optional new folder ID.
Optional new custom website field source.