Library Attributes
Get all Attributes
This endpoint retrieves a list of Attributes.
GET /api/v2/library/attributes/
Query Parameters
The following parameters may be used to filter the Attributes in the response.
Parameter | Description |
---|---|
search | Filter attributes by performing a textual search on its ID, name or description. |
GET /api/v2/library/attributes/ HTTP/1.1
Accept: application/json
Authorization: Token "YOUR SDE ACCESS TOKEN"
HTTP/1.1 200 OK
Content-Type: application/json
{
"results": [
{
"id": "AT1",
"name": "An Attribute",
"description": "",
"created": "2023-08-03T17:02:37.087247-04:00",
"updated": "2023-08-11T10:43:46.174984-04:00",
"user_managed": true,
"parent": "CAT1",
"db_id": 1
},
{
"id": "CAT2",
"name": "Custom Attribute",
"description": "",
"created": "2023-08-08T11:07:07.134521-04:00",
"updated": "2023-08-08T11:07:07.134407-04:00",
"user_managed": true,
"parent": null,
"db_id": -1
}
]
}
Get a specific Attribute
This endpoint retrieves a specific Attribute.
GET /api/v2/library/attributes/{attribute_id}/
URL Parameters
Parameter | Description |
---|---|
attribute_id | The id of the Attribute to retrieve. |
GET /api/v2/library/attributes/AT1/ HTTP/1.1
Accept: application/json
Authorization: Token "YOUR SDE ACCESS TOKEN"
HTTP/1.1 200 OK
Content-Type: application/json
{
"id": "AT1",
"name": "An Attribute",
"description": "",
"created": "2023-08-03T17:02:37.087247-04:00",
"updated": "2023-08-11T10:43:46.174984-04:00",
"user_managed": true,
"parent": "CAT1",
"db_id": 1
}