Views

Update a view

Updates an existing view with the provided details.

patch/v1/views/{id}

Request

Path parameters

idstring required

Request body

namestring
columnsobject
iconstring

Example request

{
  "name": "Updated LLM View",
  "data": [
    "AND",
    {
      "id": "models",
      "params": {
        "models": [
          "gpt-4",
          "gpt-3.5-turbo"
        ]
      }
    }
  ],
  "columns": {
    "id": "ID",
    "content": "Content",
    "date": "Date",
    "user": "User"
  },
  "icon": "user"
}

Response

Successful response

idstring
namestring
columnsobject
iconstring
type'llm' | 'thread' | 'trace'
projectIdstring
ownerIdstring
updatedAtstring date-time

Example response

{
  "id": "1234abcd",
  "name": "LLM Conversations",
  "data": [
    "AND",
    {
      "id": "models",
      "params": {
        "models": [
          "gpt-4"
        ]
      }
    }
  ],
  "icon": "chat",
  "type": "llm",
  "projectId": "project123",
  "ownerId": "user456",
  "updatedAt": "2023-04-01T12:00:00Z"
}

Changes

No recorded changes to this operation across all 1 revision of this API.