Update prompt text and/or providers
Updates the text and/or provider assignments of an existing prompt. Only provided fields are changed.
PATCH /prompts/{promptId}
Update prompt text and/or providers
Updates the text and/or provider assignments of an existing prompt. Only provided fields are changed.
Authentication: API key required (Bearer token)
Parameters
| Name | In | Required | Description |
|---|---|---|---|
promptId | path | Yes | Prompt ID to operate on. |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
text | string | No | Updated prompt text. |
providers | array | No | Replacement provider list for this prompt. |
locations | array | No | Replacement ISO 3166-1 alpha-2 location code list for the prompt. |
Request Example
curl -X PATCH https://sellm.io/api/v1/prompts/example_id \
-H "Authorization: Bearer sellm_your_api_key_here" \
-H "Content-Type: application/json"
Responses
| Status | Description |
|---|---|
200 | Prompt updated |
400 | Bad request |
401 | Unauthorized |
403 | Prompt limit exceeded |
404 | Prompt not found |
409 | Prompt already exists |
429 | Rate limited |
500 | Internal error |