Undelete Product
Description
Undelete specified Nabto Edge Product. This returns an array of device IDs for which the fingerprint could not be restored as it is used by another device. Only administrators has access to this function.
Request
POST /v1/n5/products/:productId/undelete
Response
Successful response contains the following JSON formated body:
{
duplicates: {
deviceId: string,
fingerprint: string
}[]
}
Response Status codes:
- 200 on success
Request headers
This request must have the following headers:
Authorization: bearer <ApiKey>
X-Nabto-Organization: <organizationId>
Example
Request
curl -XPOST "https://api.cloud.nabto.com/v1/n5/products/:productId/undelete" \
-H "Authorization: Bearer <ApiKey>" \
-H "X-Nabto-Organization: <OrganizationId>"
Response
{
duplicates: [{
deviceId: "de-efghijkl",
fingerprint: "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef"
},
...]
}