---
updatedAt: 2025-09-22T20:35:02.000Z
agentTools:
  projectIndex: https://docs.v7labs.com/llms.txt
---

# Update RunningSession

Modify a RunningSession to elastically run a TrainedModel

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "wind",
    "version": "2.0"
  },
  "servers": [
    {
      "url": "https://darwin.v7labs.com/ai"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "header",
        "name": "Authorization"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/running_sessions/{running_session_id}": {
      "put": {
        "summary": "Update RunningSession",
        "description": "Modify a RunningSession to elastically run a TrainedModel",
        "operationId": "update-runningsession",
        "parameters": [
          {
            "name": "running_session_id",
            "in": "path",
            "description": "The ID of the RunningSession to update",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "min": {
                    "type": "integer",
                    "description": "The minimum number of instances to run for the TrainedModel",
                    "format": "int32"
                  },
                  "max": {
                    "type": "integer",
                    "description": "The maximum number of instances to run for the given TrainedModel, should the model need to scale up",
                    "format": "int32"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"access_level\": \"private\",\n  \"device\": \"cpu\",\n  \"id\": \"5c825aa8-d4d4-40c6-9c8c-46d9f9792c1c\",\n  \"inserted_at\": \"2020-10-13T16:36:00\",\n  \"max\": 2,\n  \"meta\": {},\n  \"min\": 1,\n  \"name\": \"My Running Session\",\n  \"team_id\": 123,\n  \"trained_model_id\": \"1703d9ea-5c19-4cd6-84e9-ec30b921817b\",\n  \"updated_at\": \"2020-10-13T16:36:00\"\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "access_level": {
                      "type": "string",
                      "example": "private"
                    },
                    "device": {
                      "type": "string",
                      "example": "cpu"
                    },
                    "id": {
                      "type": "string",
                      "example": "5c825aa8-d4d4-40c6-9c8c-46d9f9792c1c"
                    },
                    "inserted_at": {
                      "type": "string",
                      "example": "2020-10-13T16:36:00"
                    },
                    "max": {
                      "type": "integer",
                      "example": 2,
                      "default": 0
                    },
                    "meta": {
                      "type": "object",
                      "properties": {}
                    },
                    "min": {
                      "type": "integer",
                      "example": 1,
                      "default": 0
                    },
                    "name": {
                      "type": "string",
                      "example": "My Running Session"
                    },
                    "team_id": {
                      "type": "integer",
                      "example": 123,
                      "default": 0
                    },
                    "trained_model_id": {
                      "type": "string",
                      "example": "1703d9ea-5c19-4cd6-84e9-ec30b921817b"
                    },
                    "updated_at": {
                      "type": "string",
                      "example": "2020-10-13T16:36:00"
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```