Skip to main content
POST
/
v1
/
repo
/
{repo_name}
/
prompts
/
batch
Batch Create Prompts
curl --request POST \
  --url http://localhost:8080/v1/repo/{repo_name}/prompts/batch \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "prompts": {}
}'
{
  "created": [
    "greeting_prompt",
    "mathematics_prompt"
  ],
  "failed": {
    "invalid_prompt": "Name contains invalid character: '/'"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

X-User-Id
string | null

User ID override via header (requires master API key)

Path Parameters

repo_name
string
required

Query Parameters

user_id
string | null

User ID override (requires master API key)

Body

application/json

Batch prompt set model

prompts
Prompts · object
required

Dictionary mapping prompt_name to messages list

Response

Successful Response

Batch prompt response model

created
string[]
required

List of successfully created items

failed
Failed · object
required

Dictionary of failed items with error messages