POST
/
cancel_training
/
{training_id}
Cancel Training Request
curl --request POST \
  --url https://modelslab.com/api/v3/cancel_training/{training_id} \
  --header 'Content-Type: application/json' \
  --data '{
  "key": ""
}'
{
  "status": "success",
  "messege": "<string>",
  "data": "<string>"
}

Request

Send a POST request to below endpoint. Where {training_id} is the one returned in the response upon initiating the model training.
curl
--request POST 'https://modelslab.com/api/v3/cancle_training/{training_id}' \

Body

json
{ 
    "key": ""
}

Path Parameters

training_id
string
required

The unique identifier for the training job to cancel

Example:

"F5jvdzGnYi"

Body

application/json
key
string
required

Your API Key used for request authorization

Example:

""

Response

Training cancelled successfully

status
enum<string>
Available options:
success,
error
messege
string

Response message

data
string

Additional response data