Prompts
Import prompts
Imports a list of prompts into a prompt set and returns the updated set. Send an Idempotency-Key header so a retry within 24 hours never runs it twice.
POST/v1/projects/{project_id}/prompt-sets/{prompt_set_id}/import
Needs the prompts:write scope
Imports a list of prompts into a prompt set and returns the updated set. Send an Idempotency-Key header so a retry within 24 hours never runs it twice.
Path parameters
| Parameter |
|---|
project_id |
prompt_set_id |
Headers
| Parameter |
|---|
Idempotency-Key |
Request body
| Parameter | Description |
|---|---|
prompts | |
prompts.text | |
prompts.theme | Default "" |
prompts.intent | Default "" |
prompts.buyer_stage | Default "" |
prompts.persona | Default "" |
prompts.cohort | |
prompts.enabled | Default true |
prompts.topic | Default "" |
Response 201: PromptSet