Skip to content

train_job_cancel

Endpoint Documentation: /v1/lamini/train/jobs/{job_id}/cancel

Note

You can cancel a job by going to the train tab at https://app.lamini.ai/train

Cancel a scheduled or running training job.

Request

HTTP Method: POST

Path: https://api.lamini.ai/v1/lamini/train/jobs/{job_id}/cancel

Headers:

  • Authorization: Bearer <LAMINI_API_KEY>
  • Content-Type: application/json

Parameters:

  • {job_id} - The unique identifier of the training job to be cancelled.

Response

Body (JSON):

  • message - A message describing whether the job was successfully cancelled or not
{ "message": "cancelled 418" }

Example

This example cancels the training job with the ID 418. The request is authenticated using the LAMINI_API_KEY bearer token.

Request

curl --location --request POST 'https://api.lamini.ai/v1/lamini/train/jobs/418/cancel' \
--header 'Authorization: Bearer <LAMINI_API_KEY>' \
--header 'Content-Type: application/json'

Response

{
  "message": "cancelled 418"
}