Update

Allows to update access details to the device for specific share. This endpoint can be used by owner or administrator of the device.

PATCH https://api.tedee.com/api/v1.30/my/deviceshare

Body Parameters

Name

Type

Description

accessLevel

Access level

represents user access level

id

number

id of share

remoteAccessDisabled

boolean

represents if remote access is disabled

repeatEvent

Repeat event

represents repeat event of the share

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 share

Sample Request

curl -X PATCH "https://api.tedee.com/api/v1.30/my/deviceshare" -H "accept: application/json" -H "Content-Type: application/json-patch+json" -H "Authorization: Bearer <<access token>>" -d "<<body>>"

Body:

{
    "id": 1,
    "accessLevel": 1,
    "repeatEvent": {
        "id": 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
}