Autional Autional
API Reference GitHub autional.com →

PUT /devices/{id}/trust

Set the trust status of a device.

Sessions & Devices `bearerAuth` application/json

Request Parameters

NameInTypeRequiredDefaultExampleConstraintsDescription
id path string Yes Device ID

Request Body

Schema: dto.TrustDeviceRequest

FieldTypeRequiredExampleConstraintsDescription
trust boolean Yes Is trusted

Responses

StatusDescriptionSchema
200Setting successfuldto.SimpleResponseWrapper
400Request errordto.SimpleResponseWrapper
401Unauthorizeddto.SimpleResponseWrapper
404Device not founddto.SimpleResponseWrapper

Referenced Schemas

dto.SimpleResponseWrapper

FieldTypeRequiredExampleConstraintsDescription
code integer No
message string No