---
updatedAt: 2025-05-20T21:48:52.000Z
agentTools:
  projectIndex: https://developers.optt.health/llms.txt
---

# Update a session by clinic

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "version": "1.0.0",
    "title": "Profile APIs",
    "license": {
      "name": "Apache 2.0",
      "url": "http://www.apache.org/licenses/LICENSE-2.0.html"
    }
  },
  "tags": [
    {
      "name": "clinic-session-controller",
      "description": "Clinic Session Controller"
    }
  ],
  "paths": {
    "/clinic/session": {
      "put": {
        "tags": [
          "clinic-session-controller"
        ],
        "summary": "Update a session by clinic ",
        "operationId": "updateSessionUsingPUT_1",
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "default": "bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1OTk5MjYyNTgsInVzZXJfbmFtZSI6Imluc3RpdHV0ZSIsImF1dGhvcml0aWVzIjpbIklOU1RJVFVURSJdLCJqdGkiOiIyZDMzNGY5YS01OWFmLTRjMzctOWE0OS1iMGU4NzBhNTQzZjQiLCJjbGllbnRfaWQiOiJvcHR0LTAyZWU3N2RjLWFjNDUtNDM0NC04MTdlLTE3Y2E1MmI1OGI1ZCIsInNjb3BlIjpbInJlYWQiLCJ3cml0ZSJdfQ.ANh2KLL4IfolkPfaJ3JsUYQTFkpKxlXT5vCKzkwhvJsqUO5eBSErYB5H6c2kQvB3EWfLlFZAo1QQAgbHpkUm776qijWcncv77uT-drBvscInvBu0ahQh96Fdn9eXnbXrCBgt80RsZKkFI4W7SrziiVpXlFuUjKL4Jm5CkuK5dmAB6nPXJGnKx0qqg0uHfuHsHvJxfeoiqwz481oJ48dUx8W-CVDDAo79twFfqCmAm_yy8kgJe67_nGYfWPu6wY9Z5YCDnLiVM6Ky8md-hcQhScTIRAHql7nebfUIPb8h_J7jQbhAg2IwVLp92Xccp_F9gmeOu4O6dWy08Amstt1l2A"
            }
          },
          {
            "name": "offset",
            "in": "header",
            "description": "offset",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/SessionUpdateRequestModel"
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "*/*": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "201": {
            "description": "Created"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not Found"
          }
        }
      }
    }
  },
  "servers": [
    {
      "url": "//gwi.dv.optt.ca/gateway/profile/"
    }
  ],
  "components": {
    "requestBodies": {
      "SessionUpdateRequestModel": {
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/SessionUpdateRequestModel"
            }
          }
        },
        "description": "model",
        "required": true
      }
    },
    "schemas": {
      "AssignmentRequestModel": {
        "type": "object",
        "properties": {
          "bookId": {
            "type": "integer",
            "format": "int64"
          },
          "caregiverId": {
            "type": "integer",
            "format": "int64"
          },
          "clientId": {
            "type": "integer",
            "format": "int64"
          },
          "endDate": {
            "type": "string"
          },
          "endTime": {
            "type": "string"
          },
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "isDeleted": {
            "type": "boolean"
          },
          "isNew": {
            "type": "boolean"
          },
          "isUpdated": {
            "type": "boolean"
          },
          "name": {
            "type": "string"
          },
          "reminds": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RemindModel"
            }
          },
          "sessionId": {
            "type": "integer",
            "format": "int64"
          },
          "startDate": {
            "type": "string"
          },
          "startTime": {
            "type": "string"
          }
        },
        "title": "AssignmentRequestModel"
      },
      "RemindModel": {
        "type": "object",
        "properties": {
          "afterDays": {
            "type": "integer",
            "format": "int32"
          },
          "date": {
            "type": "string"
          },
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "isDeleted": {
            "type": "boolean"
          },
          "isNew": {
            "type": "boolean"
          },
          "isUpdated": {
            "type": "boolean"
          },
          "time": {
            "type": "string"
          }
        },
        "title": "RemindModel"
      },
      "SessionUpdateRequestModel": {
        "type": "object",
        "properties": {
          "assignments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AssignmentRequestModel"
            }
          },
          "caregiverId": {
            "type": "integer",
            "format": "int64"
          },
          "description": {
            "type": "string"
          },
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "startDate": {
            "type": "string"
          },
          "startTime": {
            "type": "string"
          },
          "title": {
            "type": "string"
          }
        },
        "title": "SessionUpdateRequestModel"
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```