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/unblockhttps://localhost/admin/unblock
Method:
POSTSecurity 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 RequestIf any of the required headers are missing from the request:
{ "error": "inputs missing from headers" }
If the provided
idis not a valid owner:{ "error": "id is not a valid owner" }
403 ForbiddenIf the
idis admin but the request is not from localhost:{ "error": "admin can only use from localhost" }
If the
idprovided is not the owner of the entity:{ "error": "you are not the owner of the entity" }