Label Parameter List
Endpoint for per-object parameters associated with a labeltype.
GET
Retrieving a paginated list of label parameters requires a GET request to a
list URL:
GET /api/v4/labeltypes/
POST
Creating and a label parameter requires a POST request to a list URL:
POST /api/v4/labeltypes/
DELETE
Deleting all label parameters requires a DELETE request on a list URL:
DELETE /api/v4/labeltypes/
Query parameters
name
Text filter on the name
field. Supports the following lookups:
exact
and startswith
.
object_type__model: Filter on the object type name of the labeled object (e.g. 'building')
object_id: Filter on the ID of the labeled object.
start/end:
Temporal filter on start
and end
. Supports various lookup types.
Filter values should be specified in ISO 8601 YYYY-MM-DDThh:mm:ssZ
format.
valid_at: Per label_type and object, return the latest valid label parameter.
created:
Temporal filter on created
. Supports various lookup types
(exact
, lt
, lte
, gt
, gte
; created__exact by default).
Filter values should be specified in ISO 8601 YYYY-MM-DDThh:mm:ssZ format.
Examples:
?name=parameter_name
?name__startswith=parameter
?object_type__model=building
?object_id=123
?start__gte=2019-01-01T02:03:04Z
?start__lte=2019-01-01T02:03:04Z
?end__gte=2019-01-01T02:03:04Z
?end__lte=2019-01-01T02:03:04Z
?end__lt=2019-01-02T02:03:04Z&start__gt=2019-01-01T02:03:04Z
?valid_at=2019-01-02T02:03:00Z
?created__gte=2017-01-01T00:00:00Z
GET /api/v4/labeltypes/e23c58ea-ae39-41bf-9867-021a996034b8/labelparameters/?format=api
{
"count": 0,
"next": null,
"previous": null,
"results": []
}