Navigation
Update device metadata
Note: This endpoint is deprecated. Please refer to the new endpoint.
Update metadata for an existing device. Supply the unique device ID issued when attaching a device.
Parameters
metadata_fields
object
The custom metadata to be appended to the pre-existing device metadata.
Returns
Returns a success message.
POST /v2/proj/device/:id/metadata
import Rupt from 'rupt';
import axios from 'axios';
const { data } = await axios.post(
'https://api.rupt.dev/v2/proj/device/DEVICE_ID/metadata',
{ metadata_fields: { key: "value" } },
{ headers: { Authorization: `Bearer ${API_SECRET}` } }
);
Response
{
"success": true
}