Update a view
curl --request PATCH \
--url https://api.getlurk.com/v1/views/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"name": "<string>",
"description": "<string>",
"conversion": true
}
'const options = {
method: 'PATCH',
headers: {
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({name: '<string>', description: '<string>', conversion: true})
};
fetch('https://api.getlurk.com/v1/views/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.getlurk.com/v1/views/{id}"
payload = {
"name": "<string>",
"description": "<string>",
"conversion": True
}
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"id": "view_01m6gqxf40ermrwm4d7fx1w909",
"key": "top-earners",
"name": "Top earners",
"shape": "list",
"visibility": "team",
"conversion": false,
"updated_at": "2026-11-03T13:00:00.000Z",
"description": "Who earned the most points this month",
"definition": {
"who": "everyone",
"what": [
{
"measure": "given",
"unit": "points"
}
],
"over": "this_month",
"shape": {
"type": "list",
"by": "user",
"size": 10
}
},
"endpoint": "/v1/views/top-earners",
"made_by": "key",
"template": null,
"dashboards": [],
"created_at": "2026-11-03T13:00:00.000Z"
}{
"error": {
"status": 123,
"code": "invalid_json",
"message": "<string>",
"request_id": "<string>",
"doc_url": "<string>",
"param": "<string>",
"next_step": "<string>"
}
}{
"error": {
"status": 123,
"code": "invalid_json",
"message": "<string>",
"request_id": "<string>",
"doc_url": "<string>",
"param": "<string>",
"next_step": "<string>"
}
}Views
Update a view
Renames a view, changes its description, replaces its whole definition, or sets or clears conversion (an owner, admin, developer or key only). Send at least one change. Dashboards that show it show the new question. Views
PATCH
/
v1
/
views
/
{id}
Update a view
curl --request PATCH \
--url https://api.getlurk.com/v1/views/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"name": "<string>",
"description": "<string>",
"conversion": true
}
'const options = {
method: 'PATCH',
headers: {
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({name: '<string>', description: '<string>', conversion: true})
};
fetch('https://api.getlurk.com/v1/views/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.getlurk.com/v1/views/{id}"
payload = {
"name": "<string>",
"description": "<string>",
"conversion": True
}
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"id": "view_01m6gqxf40ermrwm4d7fx1w909",
"key": "top-earners",
"name": "Top earners",
"shape": "list",
"visibility": "team",
"conversion": false,
"updated_at": "2026-11-03T13:00:00.000Z",
"description": "Who earned the most points this month",
"definition": {
"who": "everyone",
"what": [
{
"measure": "given",
"unit": "points"
}
],
"over": "this_month",
"shape": {
"type": "list",
"by": "user",
"size": 10
}
},
"endpoint": "/v1/views/top-earners",
"made_by": "key",
"template": null,
"dashboards": [],
"created_at": "2026-11-03T13:00:00.000Z"
}{
"error": {
"status": 123,
"code": "invalid_json",
"message": "<string>",
"request_id": "<string>",
"doc_url": "<string>",
"param": "<string>",
"next_step": "<string>"
}
}{
"error": {
"status": 123,
"code": "invalid_json",
"message": "<string>",
"request_id": "<string>",
"doc_url": "<string>",
"param": "<string>",
"next_step": "<string>"
}
}Authorizations
Headers
Body
application/json
Response
Update a view