Forum Discussion

tapatalk's avatar
tapatalk
Helper
12 years ago

another issue on rest api for our customer

Hi,Lithium Team:

 

We are developing mobile app for our customer site(http://community.ubnt.com) through rest api,but we got some issues on it.

 

Some rest api methods have permission limit on some boards but have no permission limit on other same level boards,we do not know why this happen and we need to make the error method running for us.Here is the error detail:

The Lounge board can be accessed as guest on web page,but we got permission error when call topics/count method on this board:
board url is:http://community.ubnt.com/t5/The-Lounge/bd-p/Lounge
rest api url is:http://community.ubnt.com/ubnt/restapi/vc/boards/id/Lounge/topics/count?&restapi.format_detail=full_list_element&restapi.response_style=view&restapi.response_format=json

The error info we got is:
User -1 does not have the following permission(s) at Lounge: [ allow_restapi_call_read ]
Error code:303.
Error path:http://community.ubnt.com/ubnt/restapi/vc/boards/id/Lounge/topics/count?&restapi.format_detail=full_list_element&restapi.response_style=view&restapi.response_format=json.
 
But the other boards' topics/count method works ok for us,for example:

The welcome board can be accessed as guest on web page,and the topics/count method works ok for us:
board url is:http://community.ubnt.com/t5/Welcome-Introductions/bd-p/welcome
rest api url is:http://community.ubnt.com/ubnt/restapi/vc/boards/id/welcome/topics/count?&restapi.format_detail=full_list_element&restapi.response_style=view&restapi.response_format=json

Any help is appreciated!

4 Replies