PATCH
/
v1
/
views
/
{id}
curl --request PATCH \
  --url https://api.lunary.ai/v1/views/{id} \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "Updated LLM View",
  "data": [
    "AND",
    {
      "id": "models",
      "params": {
        "models": [
          "gpt-4",
          "gpt-3.5-turbo"
        ]
      }
    }
  ],
  "icon": "user"
}'
{
  "id": "1234abcd",
  "name": "Updated LLM View",
  "data": [
    "AND",
    {
      "id": "models",
      "params": {
        "models": [
          "gpt-4",
          "gpt-3.5-turbo"
        ]
      }
    }
  ],
  "columns": [],
  "icon": "user",
  "type": "llm",
  "projectId": "project123",
  "ownerId": "user456",
  "updatedAt": "2023-04-02T10:15:00Z"
}

Path Parameters

id
string
required

Body

application/json

Response

200 - application/json

Successful response

The response is of type object.