Project
Update Prompt Suggestions
Changed onEdit pending Prompt discovery suggestions (pr_) before accepting them: rewrite the text and/or replace the tag set per item. Editing keeps a suggestion pending — accept it to create the tracked prompt. Each item is independent: unknown ids are reported in skipped, and unsatisfiable items (a standard ps_ suggestion, an unknown tag, a duplicate id, nothing to change) in rejected, so the batch never fails as a whole.
post/prompts/suggestions/update
Request
- Base URLhttps://api.peec.ai/customer/v1
- URLhttps://api.peec.ai/customer/v1/prompts/suggestions/update
- Auth
- API key in header X-API-Key
- or API key in query parameter api_key
- or HTTP bearer
Request body
Example request
{
"project_id": "or_f45b94ba-5e35-4982-93ed-285e72ee14eb",
"suggestions": [
{
"prompt_suggestion_id": "pr_93f790de-5b7a-45ee-b782-61103c81f20d"
}
]
}Response
Per-item update results
Changes
- info
endpoint added
- info