Page 1 of 1

error 401 Anauthorized when testing custom rest

Posted: Thu Jan 15, 2015 1:02 pm
by Armand

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


error 401 Anauthorized when testing custom rest

Posted: Thu Jan 15, 2015 1:38 pm
by Armand

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


error 401 Anauthorized when testing custom rest

Posted: Fri Jan 16, 2015 5:05 am
by Yurii Orishchuk

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.