Not able to retrive the created entity: 401 unauthorised #220
Replies: 2 comments 17 replies
-
@radhay-samagra
to |
Beta Was this translation helpful? Give feedback.
-
@radhay-samagra, |
Beta Was this translation helpful? Give feedback.
-
I have registered one schema and added an entity for the same with the following response
Schema:
API Request to create entity
Response
Now I wanted to retrieve my entity via API
GET /api/v1/{entity-type}/{id} HTTP/1.1
I made the following request after successfully authenticating as an entity and generated an access token:
access-token: eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJWek9OWUU0TEdObHh1WS1leHdCbmk0Z0tTWmNUaXVaSmlKdF9QeGpyQ01BIn0.eyJleHAiOjE2NTEwNjQyMTAsImlhdCI6MTY1MTA2MzYxMCwianRpIjoiMmI4MzQ0ZTctMjI0My00NmFlLWIwMGUtNWI5MDJiNDFhYTRkIiwiaXNzIjoiaHR0cDovL2xvY2FsaG9zdDo4MDgwL2F1dGgvcmVhbG1zL3N1bmJpcmQtcmMiLCJhdWQiOiJhY2NvdW50Iiwic3ViIjoiZGFiMDg1MjQtNmY2NC00ZTlkLWIzNmEtNjJhMjU3YmEyOGI3IiwidHlwIjoiQmVhcmVyIiwiYXpwIjoicmVnaXN0cnktZnJvbnRlbmQiLCJzZXNzaW9uX3N0YXRlIjoiYWQzMDg0OGYtMzI5Yy00N2U5LTgzODYtYWZlNjU4YzkwZTQyIiwiYWNyIjoiMSIsImFsbG93ZWQtb3JpZ2lucyI6WyJodHRwczovL2xvY2FsaG9zdDo0MjAyIiwiaHR0cDovL2xvY2FsaG9zdDo0MjAyIiwiaHR0cHM6Ly9sb2NhbGhvc3Q6NDIwMCIsImh0dHBzOi8vbmRlYXIueGl2LmluIiwiaHR0cDovL2xvY2FsaG9zdDo0MjAwIiwiaHR0cDovL25kZWFyLnhpdi5pbiIsImh0dHA6Ly8yMC4xOTguNjQuMTI4Il0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJvZmZsaW5lX2FjY2VzcyIsInVtYV9hdXRob3JpemF0aW9uIiwiZGVmYXVsdC1yb2xlcy1uZGVhciJdfSwicmVzb3VyY2VfYWNjZXNzIjp7ImFjY291bnQiOnsicm9sZXMiOlsibWFuYWdlLWFjY291bnQiLCJtYW5hZ2UtYWNjb3VudC1saW5rcyIsInZpZXctcHJvZmlsZSJdfX0sInNjb3BlIjoicHJvZmlsZSBlbWFpbCIsImVtYWlsX3ZlcmlmaWVkIjpmYWxzZSwicHJlZmVycmVkX3VzZXJuYW1lIjoiMTIzNDU2Nzg5MCIsImVudGl0eSI6WyJzYW1hcnRoLWhwIl0sImVtYWlsIjoidGVzdEBleGFtcGxlLmNvbSJ9.Fw8BV_QnUedyTF-uK3cGpBCLc0NCmugyfMSkvMY_fdMe43MzhZgTMbKUt4nr05x19Vl9iCRI55YRMhAJ82NX5q-femAxtrdj8FuXEpxak4VBEXH3SmsfD95X5LrokcMfoHpL-qeZtQy3tF9LwUVgEH7KOP0JiQYfimjXNdUgI48nta_rikIqp2PsgN6TVCWzkOKXduZBtdCnMt6kqXod8luAjckfxwKukqgzs4I2hIagkisiL_pupLadDkX0WON0yB53qChDsHCZb2FFc-qL0XOGOP9nAm4mKBrrLlg4jmuEhKWG-5myUS1QSrJBDQktB5cDMpBvBQB3Fy1ml7YC9w
I am getting 401 as an HTTP response and I am also not able to find any significant logs by the service to debug.
Beta Was this translation helpful? Give feedback.
All reactions