Views
Create a new view
Creates a new dashboard view with the provided details.
post/v1/views
Request
- Base URLhttps://api.lunary.ai
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
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
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.