Accept Prompt Suggestion
Changed onAccept a prompt suggestion by ID, creating a new prompt from it. Accepts both standard suggestions (ps_) and Prompt discovery suggestions (pr_); accepting a Prompt discovery suggestion also promotes its pending topic into a project topic. Optionally pass a country_code to override the suggestion's country for the created prompt — it applies to standard suggestions only, since a Prompt discovery suggestion keeps the market it was generated for.
Request
- Base URLhttps://api.peec.ai/customer/v1
- URLhttps://api.peec.ai/customer/v1/prompts/suggestions/{prompt_suggestion_id}/accept
- Auth
- API key in header X-API-Key
- or API key in query parameter api_key
- or HTTP bearer
Path parameters
Request body
Response
Prompt suggestion accepted and prompt created
Example response
{
"id": "pr_93f790de-5b7a-45ee-b782-61103c81f20d"
}Changes
- info
added the new
MNenum value to the request property(media type: application/json) - info
added the new
MNenum value to the request property(media type: application/x-www-form-urlencoded) - info
added the new
MNenum value to the request property(media type: multipart/form-data) - info
added the non-success response with the status
- info
added the optional property
to the response with the status
- info