cURL
curl --request POST \ --url https://api.example.com/api/v2/projects/{project_id}/prompt-optimization-jobs/{job_id}/cancel \ --header 'Authorization: Bearer <token>'
{}
Only jobs that have not yet completed can be cancelled.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
EmptyResponse()
The response is of type EmptyResponse · object.
EmptyResponse · object