Update
Allows to update access details to the device for specific share. This endpoint can be used by owner or administrator of the device.
PUT https://api.tedee.com/api/v1.34/my/device/{deviceId}/access/{accessId}
Body Parameters
Name |
Type |
Description |
---|---|---|
accessLevel |
represents user access level |
|
remoteAccessDisabled |
boolean |
represents if remote access is disabled |
weekDays |
number |
allowed week days when user can access the device |
startDate |
datetime |
start date of period when user can access the device |
endDate |
datetime |
end date of period when user can access the device |
dayStartTime |
datetime |
start time of the day when user can access the device |
dayEndTime |
datetime |
end time of the day when user can access the device |
Responses
Name |
Description |
---|---|
204 No Content |
successful operation |
Scopes
Name |
Description |
---|---|
DeviceShare.ReadWrite |
Grants user possibility to read and write data connected with device shares |
Examples
Update access
Sample Request
curl -X PUT "https://api.tedee.com/api/v1.34/my/device/{deviceId}/access/{accessId}" -H "accept: application/json" -H "Content-Type: application/json-patch+json" -H "Authorization: Bearer <<access token>>" -d "<<body>>"
Body:
{
"accessLevel": 1,
"weekDays": 10,
"dayStartTime": "2020-12-14T08:09:57.781Z",
"dayEndTime": "2020-12-31T08:10:57.781Z",
"startDate": null,
"endDate": null,
"remoteAccessDisabled" : false
}
Sample response
HTTP status code: 204
{
"success": true,
"errorMessages": [],
"statusCode": 204
}