Enable tracelogging
Description
Enables basestation tracelogging for a specific device. Can also be used to disable by setting ttl to 0.
Request
POST /v1/domains/:domain/devices/:deviceId/tracelog
{
ttl: number
}
Response
Successful response contains the following JSON formated body:
{
ttl: number
}
Response Status codes:
- 200 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/domains/:domain/devices/:deviceId/tracelog" \
-H "Authorization: Bearer <ApiKey>" \
-H "X-Nabto-Organization: <OrganizationId>" \
-H "Content-Type: application/json" \
-d '{ ttl: 42}'
Response
{
ttl: 42
}