Skip to main content
PUT
/
ai-models
/
:id

Endpoint

PUT https://gateway.orkeia.ai/ai-models/{id}

Headers

Requires header authorization: <your_token>.
authorization:  <your_token>
Content-Type: application/json

Route Parameters

  • id — Model ID (e.g., MODEL_67890)

Request Body

{
  "model": {
    "name": "GPT-4 Orkeia (Updated)",
    "sectors": ["engineering", "support"],
    "description": "Update of model details",
    "enabled": true,
    "provider": "openai",
    "model": "gpt-4-0613",
    "apikey": "sk-NEWA-PIKE-Y123" 
  },
  "environment": {
    "company": "acme-inc",
    "sector": "engineering"
  }
}

Response (200)

{
  "status": "OK",
  "data": { "true" }
}

Error Codes

500 — Server Error

{
  "status": "ERROR",
  "code": "server/error",
  "data": null
}

400 — Client Error

{
  "status": "ERROR",
  "code": "client/error",
  "data": null
}