Images


List All Images Associated With My Twin

Add an Image to My Twin

Delete An Image


§List All Images Associated With My Twin

curl --location --request GET '<API_URL>/images/' \ --header 'Content-Type: application/vnd.api+json' \ --header 'X-Organization: <ORG_ID>' \ --header 'X-Twin: <TWIN_ID>' \ --header 'Authorization: Token <ACCESS_TOKEN>'

§Add An Image To My Twin

curl --location --request POST '<API_URL>/images/' \ --header 'Content-Type: application/vnd.api+json' \ --header 'X-Organization: <ORG_ID>' \ --header 'X-Twin: <TWIN_ID>' \ --header 'Authorization: Token <ACCESS_TOKEN>' \ --data-raw '{ "data": { "type": "images", "attributes": { "media": "<BASE64_STRING>" } } }

§Delete An Image

​​curl --location --request DELETE '<API_URL>/images/<IMG_ID>' \ --header 'Content-Type: application/vnd.api+json' \ --header 'X-Organization: <ORG_ID>' \ --header 'X-Twin: <TWIN_ID>' \ --header 'Authorization: Token <ACCESS_TOKEN>' \ --data-raw ''