Armand
Posts: 0
Joined: Sat Jan 03, 2015 9:04 am

error 401 Anauthorized when testing custom rest

I have created a separate Rest service to update additional fields in my user table.
When I test the service i get the following error message:

{
"status":401,
"uri":"https://api.appery.io/rest/1/db/users...",
"response":{
"code":"DBUU001",
"description":"unauthorized"
}
}

I would assume that it is because I do not pass a valid X-Appery-Session-Token
to the test variable?

Is this assumption correct and if so how do I test the service?

Armand

Armand
Posts: 0
Joined: Sat Jan 03, 2015 9:04 am

error 401 Anauthorized when testing custom rest

I have mapped the update service in application and it is working 100%, so my assumption is correct that I have to pass a dummy session token if I test the service.

Armand

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

error 401 Anauthorized when testing custom rest

Hi Armand

Yes it's correct - you should pass correct "sessionToken" to edit current user..

Also you can use "masterKey".

More details here: http://devcenter.appery.io/documentat...

Regards.

Return to “Issues”