HelpvanePromptController_revert
POST
/v1/admin/prompts/{id}/revert
const url = 'https://example.com/v1/admin/prompts/example/revert';const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
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/example/revert \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Responses
Section titled “Responses”OK (200)
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)
Not Found (404)
Conflict (409)
Unprocessable Entity (422)
Internal Server Error (500)