1

Delete token error

Topic: Delete token error

Hi, i am trying to delete a token but i get the error
{
    "error": 7,
    "reason": "ACCESS_FLAG_ERROR"
}
this is returned with this http request
https://hst-api.wialon.com/wialon/ajax.html?svc=token/update&params={"callMode":"delete","h":"my_token","fl":-1}

and with this

https://hst-api.wialon.com/wialon/ajax.html?svc=token/update&params={"callMode":"delete","h":"my_token","fl":-1}&sid=my_sid

i get this error
{
    "error": 7,
    "reason": "CHECK_TOP_ACL_FAILED"
}

does anyone have an working example of how to delete a token?

thanks in advance!

2

Delete token error

Re: Delete token error

Hello!

Please check token assess rights with  which you login befroe execute request to delete token , parameter access_type
To delete tokens you need to login with full rights - please look here

Diana Cheley
Wialon Hosting Expert
Gurtam