Skip to main content
POST
/
admin
/
ai
/
prompts
/
save
Saves the AI Prompts and its value
curl --request POST \
  --url https://api.example.com/admin/ai/prompts/save \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "languageID": 1,
  "code": "<string>",
  "usageTypeID": 123,
  "promptText": "<string>",
  "description": "<string>",
  "changeNotes": "<string>"
}
'
{
  "success": true,
  "data": "<unknown>"
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Body

application/json
languageID
integer<int32>
default:1
code
string | null
usageTypeID
integer<int32>
promptText
string | null
description
string | null
changeNotes
string | null

Response

Success

success
boolean
data
unknown