Reference
Filters
Saved filters: list, read, create, change and delete, with their sharing.
List saved filters
/orgs/{org}/filtersScope: filters:read
The saved filters the token's person may see, as the filters directory lists them (organisation admins: every filter): their own, and ones shared with them, a group of theirs, a project they can open or the organisation. q looks in the name (and, for admins, the description); owner, project and group narrow it.
Path parameters
orgstringRequiredThe organisation's id (or its address name).
1 to 100 characters
The id comes from List organisations.
Query parameters
limitintegerfrom 1 to 200; default 50
cursorstringat most 1000 characters
countstringone of: true, false
qstringat most 100 characters
ownerstringA person's id, or their email address.
1 to 320 characters
projectstringShared with this project (key or id).
at most 60 characters
groupstring (uuid)Shared with this group.
sortstringone of: name, -name
fieldsstringOnly these fields, comma-separated: id, name, description, query, columns, owner, viewers, editors, stars, starred, can, tasks_url. id always comes; the fields not asked for are left out, required or not.
Answer
200 OK
Headers: X-Request-Id, RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset
Show the answer's fields
itemsarray of SavedFilterRequiredShow 12 fields
idstring (uuid)RequirednamestringRequireddescriptionstringRequiredquerystringRequiredThe query, in Advanced search's query language.
columnsarray of string or nullRequiredownerPersonRef or nullRequiredShow 2 fields
idstring (uuid)RequirednamestringRequired
viewersarray of FilterShareRequiredShow 3 fields
kindstringRequiredone of: project, group, organisation, person
idstring (uuid) or nullRequiredThe project's, group's or person's id; null for the organisation, or for one the caller can't see.
namestringRequired
editorsarray of FilterShareRequiredShow 3 fields
kindstringRequiredone of: project, group, organisation, person
idstring (uuid) or nullRequiredThe project's, group's or person's id; null for the organisation, or for one the caller can't see.
namestringRequired
starsintegerRequiredstarredbooleanRequiredcanobjectRequiredShow 3 fields
editbooleanRequiredsharebooleanRequireddeletebooleanRequired
tasks_urlstringRequiredWhere its tasks are listed (GET /tasks?filter=<id>; tasks:read).
next_cursorstring or nullRequiredPass as cursor to read the next page; null on the last page.
totalintegerThe number of items in the whole list, with count=true.
Errors
400
invalidinvalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.{ "error": { "code": "invalid", "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.", "status": 400, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }401
invalid_tokeninvalid_token: No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).{ "error": { "code": "invalid_token", "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).", "status": 401, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }403
insufficient_scopeinsufficient_scope: The token doesn't have the scope this call needs (named in WWW-Authenticate). api_off: The organisation's admins have switched the API off. suspended: projqo has suspended the organisation.{ "error": { "code": "insufficient_scope", "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).", "status": 403, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }404
not_foundnot_found: Nothing is at this address, or the token's person can't see it: the answer is the same.{ "error": { "code": "not_found", "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.", "status": 404, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }429
rate_limitedrate_limited: Too many calls in this minute, for the token or for the whole organisation.{ "error": { "code": "rate_limited", "message": "Too many calls in this minute, for the token or for the whole organisation.", "status": 429, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }500
internalinternal: Something went wrong on projqo's side (never your mistake).{ "error": { "code": "internal", "message": "Something went wrong on projqo's side (never your mistake).", "status": 500, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }
Request
curl -X GET "https://projqo.example/api/v1/orgs/{org}/filters" \
-H "Authorization: Bearer $PROJQO_TOKEN"const res = await fetch("https://projqo.example/api/v1/orgs/{org}/filters", {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.PROJQO_TOKEN}`,
},
});
console.log(res.status, await res.json());import os
import requests
res = requests.get(
"https://projqo.example/api/v1/orgs/{org}/filters",
headers={"Authorization": f"Bearer {os.environ['PROJQO_TOKEN']}"},
)
print(res.status_code, res.json())Sample answer 200
{
"items": [
{
"id": "4e5f6a7b-8c9d-4e0f-9a1b-2c3d4e5f6a7b",
"name": "My open bugs",
"description": "",
"query": "type = Bug AND assignee = currentUser() AND statusCategory != Done",
"columns": null,
"owner": {
"id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
"name": "Priya Shah"
},
"viewers": [
{
"kind": "group",
"id": "3c4d5e6f-7a8b-4c9d-8e0f-1a2b3c4d5e6f",
"name": "Designers"
}
],
"editors": [],
"stars": 1,
"starred": true,
"can": {
"edit": true,
"share": true,
"delete": true
},
"tasks_url": "/api/v1/orgs/acme/tasks?filter=4e5f6a7b-8c9d-4e0f-9a1b-2c3d4e5f6a7b"
}
],
"next_cursor": null
}Save a filter
/orgs/{org}/filtersScope: filters:write
Saves a filter owned by the token's person, as the search page's Save does: a name unique among their filters (in any letter case), a query the query language takes, and who it is shared with. Sharing with anyone but oneself needs "Share filters and dashboards" (403).
Path parameters
orgstringRequiredThe organisation's id (or its address name).
1 to 100 characters
The id comes from List organisations.
Headers
Idempotency-KeystringA unique key (such as a uuid): the same key and body within 24 hours gets the first answer again without a second create; another body gets 422.
1 to 200 characters
Body
namestringRequired1 to 255 characters
descriptionstringat most 1000 characters
querystringThe query, in Advanced search's query language (checked as the app checks it).
at most 2000 characters
columnsarray of string or nullviewersarray of objectWho may see and run it.
at most 100 items
Show 2 fields
kindstringRequiredone of: project, group, organisation, person
idstringA project's key or id, a group's id, a person's id or email.
1 to 320 characters
editorsarray of objectWho may also change it.
at most 100 items
Show 2 fields
kindstringRequiredone of: project, group, organisation, person
idstringA project's key or id, a group's id, a person's id or email.
1 to 320 characters
Answer
201 OK
Headers: X-Request-Id, RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset
Show the answer's fields
idstring (uuid)RequirednamestringRequireddescriptionstringRequiredquerystringRequiredThe query, in Advanced search's query language.
columnsarray of string or nullRequiredownerPersonRef or nullRequiredShow 2 fields
idstring (uuid)RequirednamestringRequired
viewersarray of FilterShareRequiredShow 3 fields
kindstringRequiredone of: project, group, organisation, person
idstring (uuid) or nullRequiredThe project's, group's or person's id; null for the organisation, or for one the caller can't see.
namestringRequired
editorsarray of FilterShareRequiredShow 3 fields
kindstringRequiredone of: project, group, organisation, person
idstring (uuid) or nullRequiredThe project's, group's or person's id; null for the organisation, or for one the caller can't see.
namestringRequired
starsintegerRequiredstarredbooleanRequiredcanobjectRequiredShow 3 fields
editbooleanRequiredsharebooleanRequireddeletebooleanRequired
tasks_urlstringRequiredWhere its tasks are listed (GET /tasks?filter=<id>; tasks:read).
Errors
400
invalidinvalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.{ "error": { "code": "invalid", "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.", "status": 400, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }401
invalid_tokeninvalid_token: No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).{ "error": { "code": "invalid_token", "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).", "status": 401, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }403
insufficient_scopeinsufficient_scope: The token doesn't have the scope this call needs (named in WWW-Authenticate). api_off: The organisation's admins have switched the API off. suspended: projqo has suspended the organisation. refused: The token's person can see the thing but may not do this; the message says why. read_only: The organisation is read-only (over the Free plan's people, or a payment is overdue).{ "error": { "code": "insufficient_scope", "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).", "status": 403, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }404
not_foundnot_found: Nothing is at this address, or the token's person can't see it: the answer is the same.{ "error": { "code": "not_found", "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.", "status": 404, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }409
conflictconflict: The thing changed since it was read, or the change clashes with its state.{ "error": { "code": "conflict", "message": "The thing changed since it was read, or the change clashes with its state.", "status": 409, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }413
too_largetoo_large: The body or a file is larger than allowed.{ "error": { "code": "too_large", "message": "The body or a file is larger than allowed.", "status": 413, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }415
unsupported_media_typeunsupported_media_type: The body isn't JSON.{ "error": { "code": "unsupported_media_type", "message": "The body isn't JSON.", "status": 415, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }422
idempotency_key_reusedidempotency_key_reused: The same Idempotency-Key was sent within 24 hours with a different body.{ "error": { "code": "idempotency_key_reused", "message": "The same Idempotency-Key was sent within 24 hours with a different body.", "status": 422, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }429
rate_limitedrate_limited: Too many calls in this minute, for the token or for the whole organisation.{ "error": { "code": "rate_limited", "message": "Too many calls in this minute, for the token or for the whole organisation.", "status": 429, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }500
internalinternal: Something went wrong on projqo's side (never your mistake).{ "error": { "code": "internal", "message": "Something went wrong on projqo's side (never your mistake).", "status": 500, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }
Request
curl -X POST "https://projqo.example/api/v1/orgs/{org}/filters" \
-H "Authorization: Bearer $PROJQO_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "string",
"description": "string",
"query": "string",
"columns": [
"string"
],
"viewers": [
{
"kind": "project",
"id": "string"
}
],
"editors": [
{
"kind": "project",
"id": "string"
}
]
}'const res = await fetch("https://projqo.example/api/v1/orgs/{org}/filters", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PROJQO_TOKEN}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"name": "string",
"description": "string",
"query": "string",
"columns": [
"string"
],
"viewers": [
{
"kind": "project",
"id": "string"
}
],
"editors": [
{
"kind": "project",
"id": "string"
}
]
}),
});
console.log(res.status, await res.json());import os
import requests
res = requests.post(
"https://projqo.example/api/v1/orgs/{org}/filters",
headers={"Authorization": f"Bearer {os.environ['PROJQO_TOKEN']}"},
json={
"name": "string",
"description": "string",
"query": "string",
"columns": [
"string",
],
"viewers": [
{
"kind": "project",
"id": "string",
},
],
"editors": [
{
"kind": "project",
"id": "string",
},
],
},
)
print(res.status_code, res.json())Sample answer 201
{
"id": "4e5f6a7b-8c9d-4e0f-9a1b-2c3d4e5f6a7b",
"name": "My open bugs",
"description": "",
"query": "type = Bug AND assignee = currentUser() AND statusCategory != Done",
"columns": null,
"owner": {
"id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
"name": "Priya Shah"
},
"viewers": [
{
"kind": "group",
"id": "3c4d5e6f-7a8b-4c9d-8e0f-1a2b3c4d5e6f",
"name": "Designers"
}
],
"editors": [],
"stars": 1,
"starred": true,
"can": {
"edit": true,
"share": true,
"delete": true
},
"tasks_url": "/api/v1/orgs/acme/tasks?filter=4e5f6a7b-8c9d-4e0f-9a1b-2c3d4e5f6a7b"
}Get a saved filter
/orgs/{org}/filters/{filter}Scope: filters:read
One saved filter the person may see, with its query and who it is shared with. A filter they can't see answers 404, as a missing one. Its tasks are at tasks_url.
Path parameters
orgstringRequiredThe organisation's id (or its address name).
1 to 100 characters
The id comes from List organisations.
filterstring (uuid)RequiredThe filter's id.
The id comes from List saved filters.
Query parameters
fieldsstringOnly these fields, comma-separated: id, name, description, query, columns, owner, viewers, editors, stars, starred, can, tasks_url. id always comes; the fields not asked for are left out, required or not.
Answer
200 OK
Headers: X-Request-Id, RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset
Show the answer's fields
idstring (uuid)RequirednamestringRequireddescriptionstringRequiredquerystringRequiredThe query, in Advanced search's query language.
columnsarray of string or nullRequiredownerPersonRef or nullRequiredShow 2 fields
idstring (uuid)RequirednamestringRequired
viewersarray of FilterShareRequiredShow 3 fields
kindstringRequiredone of: project, group, organisation, person
idstring (uuid) or nullRequiredThe project's, group's or person's id; null for the organisation, or for one the caller can't see.
namestringRequired
editorsarray of FilterShareRequiredShow 3 fields
kindstringRequiredone of: project, group, organisation, person
idstring (uuid) or nullRequiredThe project's, group's or person's id; null for the organisation, or for one the caller can't see.
namestringRequired
starsintegerRequiredstarredbooleanRequiredcanobjectRequiredShow 3 fields
editbooleanRequiredsharebooleanRequireddeletebooleanRequired
tasks_urlstringRequiredWhere its tasks are listed (GET /tasks?filter=<id>; tasks:read).
Errors
400
invalidinvalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.{ "error": { "code": "invalid", "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.", "status": 400, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }401
invalid_tokeninvalid_token: No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).{ "error": { "code": "invalid_token", "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).", "status": 401, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }403
insufficient_scopeinsufficient_scope: The token doesn't have the scope this call needs (named in WWW-Authenticate). api_off: The organisation's admins have switched the API off. suspended: projqo has suspended the organisation.{ "error": { "code": "insufficient_scope", "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).", "status": 403, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }404
not_foundnot_found: Nothing is at this address, or the token's person can't see it: the answer is the same.{ "error": { "code": "not_found", "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.", "status": 404, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }429
rate_limitedrate_limited: Too many calls in this minute, for the token or for the whole organisation.{ "error": { "code": "rate_limited", "message": "Too many calls in this minute, for the token or for the whole organisation.", "status": 429, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }500
internalinternal: Something went wrong on projqo's side (never your mistake).{ "error": { "code": "internal", "message": "Something went wrong on projqo's side (never your mistake).", "status": 500, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }
Request
curl -X GET "https://projqo.example/api/v1/orgs/{org}/filters/6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10" \
-H "Authorization: Bearer $PROJQO_TOKEN"const res = await fetch("https://projqo.example/api/v1/orgs/{org}/filters/6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10", {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.PROJQO_TOKEN}`,
},
});
console.log(res.status, await res.json());import os
import requests
res = requests.get(
"https://projqo.example/api/v1/orgs/{org}/filters/6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10",
headers={"Authorization": f"Bearer {os.environ['PROJQO_TOKEN']}"},
)
print(res.status_code, res.json())Sample answer 200
{
"id": "4e5f6a7b-8c9d-4e0f-9a1b-2c3d4e5f6a7b",
"name": "My open bugs",
"description": "",
"query": "type = Bug AND assignee = currentUser() AND statusCategory != Done",
"columns": null,
"owner": {
"id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
"name": "Priya Shah"
},
"viewers": [
{
"kind": "group",
"id": "3c4d5e6f-7a8b-4c9d-8e0f-1a2b3c4d5e6f",
"name": "Designers"
}
],
"editors": [],
"stars": 1,
"starred": true,
"can": {
"edit": true,
"share": true,
"delete": true
},
"tasks_url": "/api/v1/orgs/acme/tasks?filter=4e5f6a7b-8c9d-4e0f-9a1b-2c3d4e5f6a7b"
}Change a saved filter
/orgs/{org}/filters/{filter}Scope: filters:write
Changes the filter's name, description, query, columns or sharing: its owner and the people it is shared with as editors, as in the app (an organisation admin who is neither may delete it, not change it). viewers and editors, when given, replace who it is shared with; only new shares need "Share filters and dashboards".
Path parameters
orgstringRequiredThe organisation's id (or its address name).
1 to 100 characters
The id comes from List organisations.
filterstring (uuid)RequiredThe filter's id.
The id comes from List saved filters.
Body
namestring1 to 255 characters
descriptionstringat most 1000 characters
querystringThe query, in Advanced search's query language (checked as the app checks it).
at most 2000 characters
columnsarray of string or nullviewersarray of objectWho may see and run it.
at most 100 items
Show 2 fields
kindstringRequiredone of: project, group, organisation, person
idstringA project's key or id, a group's id, a person's id or email.
1 to 320 characters
editorsarray of objectWho may also change it.
at most 100 items
Show 2 fields
kindstringRequiredone of: project, group, organisation, person
idstringA project's key or id, a group's id, a person's id or email.
1 to 320 characters
Answer
200 OK
Headers: X-Request-Id, RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset
Show the answer's fields
idstring (uuid)RequirednamestringRequireddescriptionstringRequiredquerystringRequiredThe query, in Advanced search's query language.
columnsarray of string or nullRequiredownerPersonRef or nullRequiredShow 2 fields
idstring (uuid)RequirednamestringRequired
viewersarray of FilterShareRequiredShow 3 fields
kindstringRequiredone of: project, group, organisation, person
idstring (uuid) or nullRequiredThe project's, group's or person's id; null for the organisation, or for one the caller can't see.
namestringRequired
editorsarray of FilterShareRequiredShow 3 fields
kindstringRequiredone of: project, group, organisation, person
idstring (uuid) or nullRequiredThe project's, group's or person's id; null for the organisation, or for one the caller can't see.
namestringRequired
starsintegerRequiredstarredbooleanRequiredcanobjectRequiredShow 3 fields
editbooleanRequiredsharebooleanRequireddeletebooleanRequired
tasks_urlstringRequiredWhere its tasks are listed (GET /tasks?filter=<id>; tasks:read).
Errors
400
invalidinvalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.{ "error": { "code": "invalid", "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.", "status": 400, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }401
invalid_tokeninvalid_token: No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).{ "error": { "code": "invalid_token", "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).", "status": 401, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }403
insufficient_scopeinsufficient_scope: The token doesn't have the scope this call needs (named in WWW-Authenticate). api_off: The organisation's admins have switched the API off. suspended: projqo has suspended the organisation. refused: The token's person can see the thing but may not do this; the message says why. read_only: The organisation is read-only (over the Free plan's people, or a payment is overdue).{ "error": { "code": "insufficient_scope", "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).", "status": 403, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }404
not_foundnot_found: Nothing is at this address, or the token's person can't see it: the answer is the same.{ "error": { "code": "not_found", "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.", "status": 404, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }409
conflictconflict: The thing changed since it was read, or the change clashes with its state.{ "error": { "code": "conflict", "message": "The thing changed since it was read, or the change clashes with its state.", "status": 409, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }413
too_largetoo_large: The body or a file is larger than allowed.{ "error": { "code": "too_large", "message": "The body or a file is larger than allowed.", "status": 413, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }415
unsupported_media_typeunsupported_media_type: The body isn't JSON.{ "error": { "code": "unsupported_media_type", "message": "The body isn't JSON.", "status": 415, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }429
rate_limitedrate_limited: Too many calls in this minute, for the token or for the whole organisation.{ "error": { "code": "rate_limited", "message": "Too many calls in this minute, for the token or for the whole organisation.", "status": 429, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }500
internalinternal: Something went wrong on projqo's side (never your mistake).{ "error": { "code": "internal", "message": "Something went wrong on projqo's side (never your mistake).", "status": 500, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }
Request
curl -X PATCH "https://projqo.example/api/v1/orgs/{org}/filters/6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10" \
-H "Authorization: Bearer $PROJQO_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "string",
"description": "string",
"query": "string",
"columns": [
"string"
],
"viewers": [
{
"kind": "project",
"id": "string"
}
],
"editors": [
{
"kind": "project",
"id": "string"
}
]
}'const res = await fetch("https://projqo.example/api/v1/orgs/{org}/filters/6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10", {
method: "PATCH",
headers: {
Authorization: `Bearer ${process.env.PROJQO_TOKEN}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"name": "string",
"description": "string",
"query": "string",
"columns": [
"string"
],
"viewers": [
{
"kind": "project",
"id": "string"
}
],
"editors": [
{
"kind": "project",
"id": "string"
}
]
}),
});
console.log(res.status, await res.json());import os
import requests
res = requests.patch(
"https://projqo.example/api/v1/orgs/{org}/filters/6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10",
headers={"Authorization": f"Bearer {os.environ['PROJQO_TOKEN']}"},
json={
"name": "string",
"description": "string",
"query": "string",
"columns": [
"string",
],
"viewers": [
{
"kind": "project",
"id": "string",
},
],
"editors": [
{
"kind": "project",
"id": "string",
},
],
},
)
print(res.status_code, res.json())Sample answer 200
{
"id": "4e5f6a7b-8c9d-4e0f-9a1b-2c3d4e5f6a7b",
"name": "My open bugs",
"description": "",
"query": "type = Bug AND assignee = currentUser() AND statusCategory != Done",
"columns": null,
"owner": {
"id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
"name": "Priya Shah"
},
"viewers": [
{
"kind": "group",
"id": "3c4d5e6f-7a8b-4c9d-8e0f-1a2b3c4d5e6f",
"name": "Designers"
}
],
"editors": [],
"stars": 1,
"starred": true,
"can": {
"edit": true,
"share": true,
"delete": true
},
"tasks_url": "/api/v1/orgs/acme/tasks?filter=4e5f6a7b-8c9d-4e0f-9a1b-2c3d4e5f6a7b"
}Delete a saved filter
/orgs/{org}/filters/{filter}Scope: filters:write
Deletes the filter: its owner or an organisation admin, as in the app. A filter a board uses can't be deleted (409 conflict naming the boards).
Path parameters
orgstringRequiredThe organisation's id (or its address name).
1 to 100 characters
The id comes from List organisations.
filterstring (uuid)RequiredThe filter's id.
The id comes from List saved filters.
Answer
204 Done; no body.
Headers: X-Request-Id, RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset
Errors
400
invalidinvalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.{ "error": { "code": "invalid", "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.", "status": 400, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }401
invalid_tokeninvalid_token: No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).{ "error": { "code": "invalid_token", "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).", "status": 401, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }403
insufficient_scopeinsufficient_scope: The token doesn't have the scope this call needs (named in WWW-Authenticate). api_off: The organisation's admins have switched the API off. suspended: projqo has suspended the organisation. refused: The token's person can see the thing but may not do this; the message says why. read_only: The organisation is read-only (over the Free plan's people, or a payment is overdue).{ "error": { "code": "insufficient_scope", "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).", "status": 403, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }404
not_foundnot_found: Nothing is at this address, or the token's person can't see it: the answer is the same.{ "error": { "code": "not_found", "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.", "status": 404, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }409
conflictconflict: The thing changed since it was read, or the change clashes with its state.{ "error": { "code": "conflict", "message": "The thing changed since it was read, or the change clashes with its state.", "status": 409, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }429
rate_limitedrate_limited: Too many calls in this minute, for the token or for the whole organisation.{ "error": { "code": "rate_limited", "message": "Too many calls in this minute, for the token or for the whole organisation.", "status": 429, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }500
internalinternal: Something went wrong on projqo's side (never your mistake).{ "error": { "code": "internal", "message": "Something went wrong on projqo's side (never your mistake).", "status": 500, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }
Request
curl -X DELETE "https://projqo.example/api/v1/orgs/{org}/filters/6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10" \
-H "Authorization: Bearer $PROJQO_TOKEN"const res = await fetch("https://projqo.example/api/v1/orgs/{org}/filters/6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10", {
method: "DELETE",
headers: {
Authorization: `Bearer ${process.env.PROJQO_TOKEN}`,
},
});
console.log(res.status);import os
import requests
res = requests.delete(
"https://projqo.example/api/v1/orgs/{org}/filters/6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10",
headers={"Authorization": f"Bearer {os.environ['PROJQO_TOKEN']}"},
)
print(res.status_code)Sample answer 204
No body.