Get revoked for mobile
Get all revoked certificates for mobile device. When the Tedee devices is asking for revoked certificates, this endpoint is able to return the revoked certificates.
Note
For details when the Tedee device can ask for revoked certificates, please refer to: Tedee BLE API Documentation.
GET https://api.tedee.com/api/v1.33/my/devicecertificate/getrevokedformobile?deviceId={deviceId}&version={version}
URI Parameters
Name |
Type |
Description |
---|---|---|
deviceId |
number |
id of Tedee device |
version |
number |
version of the last received revoked certificate list |
Responses
Name |
Type |
Description |
---|---|---|
200 OK |
successful operation |
|
204 No Content |
version up to date |
Scopes
Name |
Description |
---|---|
DeviceCertificate.Operate |
Grants user possibility to access devices certificates |
Examples
Revoked certificates for mobile
Sample Request
curl -X GET "https://api.tedee.com/api/v1.33/my/devicecertificate/getrevokedformobile?deviceId=123&version=1" -H "accept: application/json" -H "Authorization: Bearer <<access token>>"
Sample response
HTTP status code: 200
{
"result": {
"deviceId": 123,
"version": 2,
"lastUpdated": 1633692928,
"signature": "MEUCICFNUa+s27psC6CFYV0KJ/f=g/6AU/rS7+CWZMPahrstESAiEA5tOCveS4a1MWz4qMQN7b+cJhuFWcJjPXPr0Sl3GfCUQ=",
"revokedCertificates": [
{
"certificateId": 982,
"expirationDate": "2020-12-12T00:00:00.000000Z"
}
]
}
"success": true,
"errorMessages": [],
"statusCode": 200
}
Version up to date
Sample Request
curl -X GET "https://api.tedee.com/api/v1.33/my/devicecertificate/getrevokedformobile?deviceId=123&version=2" -H "accept: application/json" -H "Authorization: Bearer <<access token>>"
Sample response
HTTP status code: 204