Reject Follow¶
- Summary: The reject follow API is used when the device or its owner deems that the requesting entity is not authorised to the permissions that it is seeking through the
followrequest. This API rejects thefollowrequest and updates the follow status torejected.
Request¶
Endpoint: Either of
https://localhost/entity/reject-followhttps://localhost/owner/reject-follow
Method:
POSTSecurity Scheme : Either of
Required Headers:
Header Name Description follow-id ID of the follow request made by another entity. Can be obtained by calling the follow-requestsAPI
Responses¶
200 OK:- The follow request has been rejected
400 Bad Request:If any of the required headers are missing from the request:
{ "error": "inputs missing from headers" }
If the device is not autonomous:
{ "error": "unauthorized" }
If the
follow-idis invalid:{ "error": "invalid follow-id" }