Block¶
- Summary: The block API can be used either by the device owner or the middleware admin to temporaily block a device from operation.
Request¶
Endpoint: Either of:
https://localhost/owner/blockhttps://localhost/admin/block
Method:
POSTSecurity Scheme: Either of:
Required Headers:
Header Name Description entity Name of the entity being blocked
Responses¶
200 OK- The entity has been successfully blocked
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" }