Skip to main content

Search Dynamic Preferences

This endpoint searches dynamic preferences.

info

This operation does not require authentication

HTTP Request

GET /api/v2/dynamic_preference/search/

Parameters

NameInTypeRequiredDescription
limitqueryintegerfalseNumber of results to return per page
offsetqueryintegerfalseThe initial index from which to return the results
searchquerystringfalseA search term
sectionquerystringfalseFilter all preferences in a section
keysquerystringfalseGet a list of specific preferences in the format: section_1.name_1,...,section_n.name_n
orderingquerystringfalseWhich field to use when ordering the results

Example Request

const headers = {
'Accept':'application/json'
};

fetch('/api/v2/dynamic_preference/search/',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});

Responses

StatusMeaningDescriptionSchema
200OKResponse status codeInline

Response Schema

Status Code 200

NameTypeRequiredRestrictionsDescription
» countintegerfalsenoneTotal results count
» nextstring(uri)¦nullfalsenoneNext page url
» previousstring(uri)¦nullfalsenonePrevious page url
» results[Dynamic Preference]falsenoneList of results

Example responses

{
"count": "integer",
"next": "string(uri)",
"previous": "string(uri)",
"results": [
{
"id": "integer",
"section": "string",
"name": "string",
"value": "string"
}
]
}