Bulk set device fingerprints
Description
Set fingerprints for a list of devices. Request object takes an array of devices IDs, and an array of fingerprints. The first fingerprint in the list will be configured for the first device ID in the list, and so on. deviceIds.length must equal fingerprints.length.
Request
POST /v1/n5/products/:productId/devices/fingerprints
{
deviceIds: string[],
fingerprints: string[]
}
Response
Response Status codes:
- 204 on success
Request headers
This request must have the following headers:
Authorization: bearer <ApiKey>
X-Nabto-Organization: <organizationId>
Content-Type: application/json
Example
Request
curl -XPOST "https://api.cloud.nabto.com/v1/n5/products/:productId/devices/fingerprints" \
-H "Authorization: Bearer <ApiKey>" \
-H "X-Nabto-Organization: <OrganizationId>" \
-H "Content-Type: application/json" \
-d '{ deviceIds:[ "de-efghijkl",...], fingerprints:[ "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef",...]}'
Response
Returns response Code: 204