curl --request PUT \
--url https://api.tread-horizon.com/v1/users/me/user_device_permissions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"device_id": "<string>",
"device_permissions": [
{
"user_device_permission": "location_while_using",
"user_device_permission_state": "denied"
}
]
}
'{
"data": "<string>"
}This endpoint will be used by the mobile app to update the user’s permissions given in the app.
curl --request PUT \
--url https://api.tread-horizon.com/v1/users/me/user_device_permissions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"device_id": "<string>",
"device_permissions": [
{
"user_device_permission": "location_while_using",
"user_device_permission_state": "denied"
}
]
}
'{
"data": "<string>"
}Documentation Index
Fetch the complete documentation index at: https://docs.tread.ai/llms.txt
Use this file to discover all available pages before exploring further.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The Accept-Language request HTTP header indicates the natural language and locale that the client prefers.
"en"
Accepted