Skip to main content
POST
/
api
/
v2
/
projects
/
{project_id}
/
prompt-optimization-jobs
/
{job_id}
/
cancel
Cancel a pending or in-progress prompt optimization job.
curl --request POST \
  --url https://api.example.com/api/v2/projects/{project_id}/prompt-optimization-jobs/{job_id}/cancel \
  --header 'Authorization: Bearer <token>'
{}

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
job_id
string
required

Response

200 - application/json

EmptyResponse()

The response is of type EmptyResponse · object.