Updates an existing view with the provided details.
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"
}
Successful response
The response is of type object
.
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"
}
Updates an existing view with the provided details.
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"
}
Successful response
The response is of type object
.
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"
}