Unblock

  • Summary: The unblock API can be used either by the device owner or the middleware admin to unblock a previously blocked device.

Request

  • Endpoint: Either of:

    • https://localhost/owner/unblock
    • https://localhost/admin/unblock
  • Method: POST

  • Security Scheme: Either of

  • Required Headers:

    Header Name Description
    entity Name of the entity being unblocked

Responses

  • 200 OK

    • The entity has been successfully unblocked
  • 400 Bad Request

    • If any of the required headers are missing from the request:

      {
          "error": "inputs missing from headers"
      }
      
    • If the provided id is not a valid owner:

      {
          "error": "id is not a valid owner"
      }
      
  • 403 Forbidden

    • If the id is admin but the request is not from localhost:

      {
          "error": "admin can only use from localhost"
      
      }
      
    • If the id provided is not the owner of the entity:

      {
          "error": "you are not the owner of the entity"
      }