POST
/
models
curl --request POST \
  --url https://app.happyrobot.ai/api/v1/models \
  --header 'Content-Type: application/json' \
  --header 'authorization: <authorization>' \
  --data '{
  "use_case_id": "<string>",
  "name": "<string>",
  "from_model_id": "<string>",
  "train_sample_ids": [
    "<string>"
  ],
  "test_sample_ids": [
    "<string>"
  ],
  "explain_tools": true
}'
{
  "id": "<string>",
  "organization_id": "<string>",
  "use_case_id": "<string>",
  "created_at": "2024-01-01T01:01:01Z",
  "status": "pending",
  "name": "<string>",
  "description": "<string>",
  "train_sample_ids": [
    "<string>"
  ],
  "test_sample_ids": [
    "<string>"
  ],
  "from_model_id": "<string>",
  "trainable": false,
  "use_backup_for_generations": false,
  "use_backup_when_idle": false
}

Headers

authorization
string
required

Your API key for authentication. Use Bearer format.

Example:

"Bearer API_KEY"

Body

application/json

Body

The body is of type object.

Response

200
application/json

200

The response is of type object.