Views

Create a new view

Creates a new dashboard view with the provided details.

post/v1/views

Request

Request body

namestring required
columnsobject
iconstring
type'llm' | 'thread' | 'trace' required

Example request

{
  "name": "New LLM View",
  "data": [
    "AND",
    {
      "id": "models",
      "params": {
        "models": [
          "gpt-4"
        ]
      }
    }
  ],
  "columns": {
    "id": "ID",
    "content": "Content",
    "date": "Date"
  },
  "icon": "chart",
  "type": "llm"
}

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.