Task Options
Short TTL rather than a long one: this is an autocomplete, so the same prefix is re-queried on every keystroke-debounce, but a task renamed a minute ago must show up.
search is bounded because it goes into the cache key verbatim — the same 200 the board
and the gallery use.
GET
/api/v1/tasks/optionsAuthorization
AuthorizationBearer token · headerrequiredor
AuthorizationOAuth2 access token · headerrequiredQuery parameters
searchstring | anycase-insensitive match on name / generated_name
limitintegermin 1 · max 50 · default: 10
Responses
200Successful Response
successbooleandefault: true
dataTaskOption[] | anyShow propertiesHide properties
Any of:
TaskOption[]
Array of
TaskOptionidstringrequiredlabelstringrequiredany
anymessagestring | anyShow propertiesHide properties
Any of:
string
stringany
anyerrorsstring[] | anyShow propertiesHide properties
Any of:
string[]
Array of
stringstringany
any422Validation Error
detailValidationError[]Show propertiesHide properties
Array of
ValidationErrorlocstring | integer[]requiredShow propertiesHide properties
Array of
string | integerAny of:
string
stringinteger
integermsgstringrequiredtypestringrequiredinputanyctxobjectRequest
curl -X GET "/api/v1/tasks/options" \
-H "Authorization: Bearer YOUR_TOKEN"const response = await fetch("/api/v1/tasks/options", {
method: "GET",
headers: {
"Authorization": "Bearer YOUR_TOKEN"
}
});import requests
response = requests.get(
"/api/v1/tasks/options",
headers={
"Authorization": "Bearer YOUR_TOKEN"
},
)Response
{
"success": true,
"data": [
{
"id": "string",
"label": "string"
}
],
"message": "string",
"errors": [
"string"
]
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}