post/api/v2/prompt-suggestions/{id}/accept
Accept a prompt suggestion.
Creates a prompt from a pending suggestion, records the accepted prompt and monitor IDs, and can optionally run the monitor immediately.
Requires bearer API keyParameters
| Name | In | Description |
|---|---|---|
| X-Project-Id | header | Required for organization-wide API keys on project-scoped endpoints. Project-scoped keys infer the project automatically.string |
| id | path / required | No description provided.string |
Request Body
{
"type": "object",
"additionalProperties": false,
"properties": {
"monitorId": {
"type": "string"
},
"runNow": {
"type": "boolean"
}
}
}Responses
200
application/jsonAccepted prompt suggestion.
{
"type": "object",
"additionalProperties": true,
"properties": {
"projectId": {
"type": "string"
},
"promptId": {
"type": "string"
},
"monitorId": {
"type": "string"
},
"alreadyAccepted": {
"type": "boolean"
},
"runId": {
"type": "string"
},
"createdResponses": {
"type": "integer"
},
"createdCitations": {
"type": "integer"
},
"firstResponseId": {
"type": "string",
"nullable": true
}
},
"required": [
"projectId",
"promptId",
"monitorId",
"alreadyAccepted"
]
}404
application/jsonSuggestion or monitor not found.
{
"type": "object",
"additionalProperties": true
}409
application/jsonSuggestion is no longer pending.
{
"type": "object",
"additionalProperties": true
}Try it
Send this request to the local WatchLLM REST handler. Use a key from /workspace/api; organization keys can include X-Project-Id only when the endpoint documents that header.