Views
Update a view
Updates an existing view with the provided details.
patch/v1/views/{id}
Request
- Base URLhttps://api.lunary.ai
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
idstring required
Request body
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
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.