API

Revoke device

Clears the current device credential and marks the device as revoked. A check-in device can only revoke itself.

POST/v1/hq/devices/{device_id}/revoke
AuthorizationBearer <token>

Bearer token issued to a paired device; an operation's scopes list the device types allowed to call it, such as checkin.

In: header

Scope: checkin

Path Parameters

device_id*string

Response Body

application/json

curl -X POST "https://api.noona.is/v1/hq/devices/string/revoke"
{
  "id": "string",
  "company": "string",
  "name": "string",
  "type": "checkin",
  "status": "unpaired",
  "configuration": {
    "terminal": "string",
    "success_message": "string",
    "success_message_translations": {
      "is": "King Accounting tenging",
      "fr": "Connexion King Accounting"
    },
    "languages": [
      "en"
    ],
    "default_language": "en",
    "brand_color": "string"
  },
  "pairing": {
    "expires_at": "2019-08-24T14:15:22Z",
    "consumed_at": "2019-08-24T14:15:22Z",
    "attempts_remaining": 0
  },
  "masked_token": "string",
  "last_active": "2019-08-24T14:15:22Z",
  "revoked_at": "2019-08-24T14:15:22Z",
  "created_by": "string",
  "created_at": "2019-08-24T14:15:22Z",
  "updated_at": "2019-08-24T14:15:22Z"
}
Empty
Empty
Empty
Empty