/api/v1/things/tags
POST
/api/v1/things/tags
const url = 'https://example.com/api/v1/things/tags';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"thingIds":["2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"],"add":["2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"],"remove":["2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/v1/things/tags \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "thingIds": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ], "add": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ], "remove": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ] }'Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
thingIds
required
Array<string>
add
Array<string>
remove
Array<string>
Examplegenerated
{ "thingIds": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ], "add": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ], "remove": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ]}Responses
Section titled “Responses”Default Response
Media typeapplication/json
object
changed
required
Array<string>
events
required
Array<string>
Examplegenerated
{ "changed": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ], "events": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ]}