Skip to main content
POST
Start a new prompt optimization job.

Authorizations

Authorization
string
header
required

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

Path Parameters

project_id
string
required

Body

application/json
prompt_template_version_id
string<uuid>
required
dataset_id
string<uuid>
required
user_instructions
string | null
use_best_practices
boolean
default:true
use_labels
boolean
default:true
use_customer_feedback
boolean
default:true
run_test_after_optimization
boolean
default:true

Response

202 - application/json

PromptOptimizationJobCreatedResponse(job_id: uuid.UUID, status: str, created_at: datetime.datetime)

job_id
string<uuid>
required
status
string
required
created_at
string<date-time>
required