Save a goal view
curl --request POST \
--url https://nemonist.com/api/v1/folders/{id}/views \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"filter": "<string>",
"fields": [],
"wip": {}
}
'import requests
url = "https://nemonist.com/api/v1/folders/{id}/views"
payload = {
"name": "<string>",
"filter": "<string>",
"fields": [],
"wip": {}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: '<string>', filter: '<string>', fields: [], wip: {}})
};
fetch('https://nemonist.com/api/v1/folders/{id}/views', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"number": 123,
"name": "<string>",
"layout": "table",
"filter": "<string>",
"group": "state",
"sort": "changed:desc",
"fields": [
"goal"
],
"wip": {},
"default": true,
"by": "<string>",
"created": "<string>",
"changed": "<string>",
"html_url": "<string>"
}{
"error": {
"message": "<string>",
"code": 123,
"type": "<string>"
}
}{
"error": {
"message": "<string>",
"code": 123,
"type": "<string>"
}
}{
"error": {
"message": "<string>",
"code": 123,
"type": "<string>"
}
}{
"error": {
"message": "<string>",
"code": 123,
"type": "<string>"
}
}{
"error": {
"message": "<string>",
"code": 123,
"type": "<string>"
}
}Folders
Save a goal view
Saves a new view with the next number. A folder keeps at most 50 views.
POST
/
folders
/
{id}
/
views
Save a goal view
curl --request POST \
--url https://nemonist.com/api/v1/folders/{id}/views \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"filter": "<string>",
"fields": [],
"wip": {}
}
'import requests
url = "https://nemonist.com/api/v1/folders/{id}/views"
payload = {
"name": "<string>",
"filter": "<string>",
"fields": [],
"wip": {}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: '<string>', filter: '<string>', fields: [], wip: {}})
};
fetch('https://nemonist.com/api/v1/folders/{id}/views', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"number": 123,
"name": "<string>",
"layout": "table",
"filter": "<string>",
"group": "state",
"sort": "changed:desc",
"fields": [
"goal"
],
"wip": {},
"default": true,
"by": "<string>",
"created": "<string>",
"changed": "<string>",
"html_url": "<string>"
}{
"error": {
"message": "<string>",
"code": 123,
"type": "<string>"
}
}{
"error": {
"message": "<string>",
"code": 123,
"type": "<string>"
}
}{
"error": {
"message": "<string>",
"code": 123,
"type": "<string>"
}
}{
"error": {
"message": "<string>",
"code": 123,
"type": "<string>"
}
}{
"error": {
"message": "<string>",
"code": 123,
"type": "<string>"
}
}Authorizations
Body
application/json
A view's fields: POST needs name; PATCH replaces only the fields given.
Response
The new view.
A saved view of the folder's goals. View 1 is the default, Open and recent (filter -closed:<@today-2w), until one is saved as 1.