Keep Alive Device

  • Path:
/device/keepAlive
  • Type:
POST

Schemas

Request

{
  "type": "object",
  "properties": {
    "device": {
      "type": "object",
      "properties": {
        "uid": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "fiid": {
          "type": "string"
        }
      },
      "required": [
        "uid",
        "name",
        "fiid"
      ],
      "additionalProperties": false
    },
    "location": {
      "type": "object",
      "properties": {
        "latitude": {
          "type": "number"
        },
        "longitude": {
          "type": "number"
        },
        "accuracy": {
          "type": "number"
        }
      },
      "required": [
        "latitude",
        "longitude",
        "accuracy"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "device",
    "location"
  ],
  "additionalProperties": false
}

Response

{
  "type": "object",
  "properties": {
    "status": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string"
        },
        "message": {
          "type": "string"
        }
      },
      "required": [
        "code"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "status"
  ],
  "additionalProperties": false
}

Rules

  • Called by the dodo every 2 minutes to let know the server that this user is still active in the platform
  • The dodo must provide a valid token and its current location
  • All data sent when this service is invoked will be updated in the list of active dodos