Library Component Icons
Get all Library Component Icons
This endpoint retrieves a list of available icons for a Library Component.
GET /api/v2/library/component-icons/
Note that this is a static list and the sample response does not include all possible icons.
GET /api/v2/library/component-icons/ HTTP/1.1
Accept: application/json
Authorization: Token "YOUR SDE ACCESS TOKEN"
HTTP/1.1 200 OK
Content-Type: application/json
{
"results": [
{
"slug": "sdelements-bolt",
"category": "sdelements",
"label": "Bolt",
"url": "/static/components/icons/sdelements-bolt.svg",
"width": "37",
"height": "37"
},
{
"slug": "mui-cookie",
"category": "mui",
"label": "Cookie",
"url": "/static/components/icons/mui-cookie.svg",
"width": "37",
"height": "37"
}
]
}
Get a specific Library Component Icon
This endpoint retrieves a specific Library Component Icon.
GET /api/v2/library/component-icons/{slug}/
URL Parameters
Parameter | Description |
---|---|
slug | The slug of the icon to retrieve. |
GET /api/v2/library/component-icons/mui-cookie/ HTTP/1.1
Accept: application/json
Authorization: Token "YOUR SDE ACCESS TOKEN"
HTTP/1.1 200 OK
Content-Type: application/json
{
"slug": "mui-cookie",
"category": "mui",
"label": "Cookie",
"url": "/static/components/icons/mui-cookie.svg",
"width": "37",
"height": "37"
}