HelpvanePromptController_create
POST
/v1/admin/prompts
const url = 'https://example.com/v1/admin/prompts';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"id":"example","content":"example","name":"example","ruleMatch":"all","rules":[{"operator":"equals","property":"example","value":"example"}],"status":"active"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/v1/admin/prompts \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "id": "example", "content": "example", "name": "example", "ruleMatch": "all", "rules": [ { "operator": "equals", "property": "example", "value": "example" } ], "status": "active" }'Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
id
string
content
string
name
required
string
ruleMatch
string
rules
Array<object>
object
operator
required
string
property
required
Dot path into the visitor context
string
value
required
string
status
string
Responses
Section titled “Responses”Created (201)
Media typeapplication/json
object
createdAt
required
string format: date-time
createdBy
string
id
required
string
updatedAt
required
string format: date-time
updatedBy
string
content
string
name
required
string
revision
required
number
ruleMatch
string
rules
Array<object>
object
operator
required
string
property
required
Dot path into the visitor context
string
value
required
string
status
required
string
Example
{ "ruleMatch": "all", "rules": [ { "operator": "equals" } ], "status": "active"}Unauthorized (401)
Forbidden (403)
Conflict (409)
Unprocessable Entity (422)
Internal Server Error (500)