curl --request POST \ --url 'https://api-prod.usefini.com/v2/bots/4f5ef695-d03b-4d56-8fef-7f2bd5c17ef3/hc-prompt/public' \ --header 'Authorization: Bearer fini_your_api_key' \ --header 'Content-Type: application/json' \ --data '{ "hcPlanningPrompt": [ "Answer only from approved knowledge and escalate if unsure." ], "hcGuidelinePrompt": [ "Answer only from approved knowledge and escalate if unsure." ], "hcChannelPrompt": [ "Answer only from approved knowledge and escalate if unsure." ]}'
const response = await fetch('https://api-prod.usefini.com/v2/bots/4f5ef695-d03b-4d56-8fef-7f2bd5c17ef3/hc-prompt/public', { method: 'POST', headers: { Authorization: 'Bearer fini_your_api_key', 'Content-Type': 'application/json' }, body: JSON.stringify({ 'hcPlanningPrompt': [ 'Answer only from approved knowledge and escalate if unsure.' ], 'hcGuidelinePrompt': [ 'Answer only from approved knowledge and escalate if unsure.' ], 'hcChannelPrompt': [ 'Answer only from approved knowledge and escalate if unsure.' ]} )});const data = await response.json();
import requestsresponse = requests.post( "https://api-prod.usefini.com/v2/bots/4f5ef695-d03b-4d56-8fef-7f2bd5c17ef3/hc-prompt/public", headers={"Authorization": "Bearer fini_your_api_key", "Content-Type": "application/json"}, json={ "hcPlanningPrompt": [ "Answer only from approved knowledge and escalate if unsure." ], "hcGuidelinePrompt": [ "Answer only from approved knowledge and escalate if unsure." ], "hcChannelPrompt": [ "Answer only from approved knowledge and escalate if unsure." ]},)data = response.json()
curl --request POST \ --url 'https://api-prod.usefini.com/v2/bots/4f5ef695-d03b-4d56-8fef-7f2bd5c17ef3/hc-prompt/public' \ --header 'Authorization: Bearer fini_your_api_key' \ --header 'Content-Type: application/json' \ --data '{ "hcPlanningPrompt": [ "Answer only from approved knowledge and escalate if unsure." ], "hcGuidelinePrompt": [ "Answer only from approved knowledge and escalate if unsure." ], "hcChannelPrompt": [ "Answer only from approved knowledge and escalate if unsure." ]}'
const response = await fetch('https://api-prod.usefini.com/v2/bots/4f5ef695-d03b-4d56-8fef-7f2bd5c17ef3/hc-prompt/public', { method: 'POST', headers: { Authorization: 'Bearer fini_your_api_key', 'Content-Type': 'application/json' }, body: JSON.stringify({ 'hcPlanningPrompt': [ 'Answer only from approved knowledge and escalate if unsure.' ], 'hcGuidelinePrompt': [ 'Answer only from approved knowledge and escalate if unsure.' ], 'hcChannelPrompt': [ 'Answer only from approved knowledge and escalate if unsure.' ]} )});const data = await response.json();
import requestsresponse = requests.post( "https://api-prod.usefini.com/v2/bots/4f5ef695-d03b-4d56-8fef-7f2bd5c17ef3/hc-prompt/public", headers={"Authorization": "Bearer fini_your_api_key", "Content-Type": "application/json"}, json={ "hcPlanningPrompt": [ "Answer only from approved knowledge and escalate if unsure." ], "hcGuidelinePrompt": [ "Answer only from approved knowledge and escalate if unsure." ], "hcChannelPrompt": [ "Answer only from approved knowledge and escalate if unsure." ]},)data = response.json()
For write payloads, subsection helper fields from merged reads such as defaultPrompt and custom are not required. A safe round-trip pattern is to start from Get prompts, edit the arrays in place, and send them back.
curl --request POST \ --url 'https://api-prod.usefini.com/v2/bots/4f5ef695-d03b-4d56-8fef-7f2bd5c17ef3/hc-prompt/public' \ --header 'Authorization: Bearer fini_your_api_key' \ --header 'Content-Type: application/json' \ --data '{ "hcPlanningPrompt": [ "Answer only from approved knowledge and escalate if unsure." ], "hcGuidelinePrompt": [ "Answer only from approved knowledge and escalate if unsure." ], "hcChannelPrompt": [ "Answer only from approved knowledge and escalate if unsure." ]}'
const response = await fetch('https://api-prod.usefini.com/v2/bots/4f5ef695-d03b-4d56-8fef-7f2bd5c17ef3/hc-prompt/public', { method: 'POST', headers: { Authorization: 'Bearer fini_your_api_key', 'Content-Type': 'application/json' }, body: JSON.stringify({ 'hcPlanningPrompt': [ 'Answer only from approved knowledge and escalate if unsure.' ], 'hcGuidelinePrompt': [ 'Answer only from approved knowledge and escalate if unsure.' ], 'hcChannelPrompt': [ 'Answer only from approved knowledge and escalate if unsure.' ]} )});const data = await response.json();
import requestsresponse = requests.post( "https://api-prod.usefini.com/v2/bots/4f5ef695-d03b-4d56-8fef-7f2bd5c17ef3/hc-prompt/public", headers={"Authorization": "Bearer fini_your_api_key", "Content-Type": "application/json"}, json={ "hcPlanningPrompt": [ "Answer only from approved knowledge and escalate if unsure." ], "hcGuidelinePrompt": [ "Answer only from approved knowledge and escalate if unsure." ], "hcChannelPrompt": [ "Answer only from approved knowledge and escalate if unsure." ]},)data = response.json()
Current controller behavior: this response is the stored version row, not the merged template view. If you need the merged read shape with defaultPrompt and custom, call Get prompts after writing.