When I name the token “jwt” in Postman and use it in the post operation for authentication, it gives a 401 error

These are a part of my path operations

This is my postman interface to name the token

There is no problem in get operation

But I am taking error in post operation

I controlled my path operations but I can’t see the mistake. Can you help me please

  • Change from ‘pm.response.json().access_token’ to ‘pm.response.json().token’

    – 

  • 401 means the token allow get but not allow create. So you needs login user give a create role(or scope) by Admin. See this question

    – 

Leave a Comment