Disable AI prompt

Disables the specified AI prompt.

HTTP Request

POST /api/sonar/ai/prompts/:guid/disable
cURL Example
curl -H "Authorization: Bearer <API_KEY>" \
     -X POST https://HOSTNAME/api/sonar/ai/prompts/a1b2c3d4-e5f6-7890-abcd-ef1234567890/disable
Request Parameters
Path Parameters
KeyTypeDescriptionNotes
guidStringPrompt identifier36-character GUID

Success Response

{}

Error Responses

Identifier is not in valid GUID format

HTTP status code 400

{
  "error_code": "invalid-param-type",
  "error_msg": "guid should be guid type."
}
Prompt is not found

HTTP status code 500

{
  "error_code": "illegal-state",
  "error_msg": "prompt not found"
}