POST-Key Value Map- 401 Unauthorized

Not applicable

Trying to create a Key Value Map through 'Postman', but got Status Code: 401 Unauthorized. PFA screen shots.

Solved Solved
0 6 249
1 ACCEPTED SOLUTION

Not applicable
@BHASKAR PAL

1:Could you please check kvm url i.e your organization name in that.

2: Please verify the username and password which will be base64 encoded.

I tried the similar fashion and able to create the kvm variables.

View solution in original post

6 REPLIES 6

Not applicable
@BHASKAR PAL

1:Could you please check kvm url i.e your organization name in that.

2: Please verify the username and password which will be base64 encoded.

I tried the similar fashion and able to create the kvm variables.

@BHASKAR PAL ,

bpal-test.apigee.net is not an org name, it's the hostname of your API proxy endpoint.

Your org name is : bpal

Environment is : test

apigee.net : Is host name of proxy end point.

Thanks @Anil Sagar.

I have modified the org name.

I have tried with following two URL separately, https://api.enterprise.apigee.com/v1/o/bpal/keyvaluemaps,

https://api.enterprise.apigee.com/v1/organizations/bpal/keyvaluemaps

- which one is correct?

Also I have tried "https://www.base64encode.org/" (with UTF-8) (link you have mentioned in different topic) for username:password encoding.

But still got the same status 401.

both are correct, Use Basic Auth in postman, give your Apigee Edge Email & Password..

Thank You @Anil Sagar. Got Status 201.

Anytime 🙂 Glad issue is resolved. Refer to Apigee docs in future for any reference. As always, Keep us posted in community.