How to update a custom role using Management API?

Former Community Member
Not applicable

I am unable to remove the get from these two permissions using Management API for a custom role. I am seeing Forbidden error.

{ "organization": "prod", "path": "/environments", "permissions": [ "get" ] },

{ "organization": "prod", "path": "/environments/*", "permissions": [ "get" ] },

Also what is the path to remove ability to CRUD "Spec"?

1 3 303
3 REPLIES 3

Hi @maneesh m,

Just try to add an extra / at the end path i.e

{ "organization": "prod", "path": "/environments/", "permissions": [ "get" ] },

{ "organization": "prod", "path": "/environments/*/", "permissions": [ "get" ] },

It should work. You can refer this post https://community.apigee.com/questions/60256/custom-role-for-enviroment.html as there was a defect which is being fixed by Apigee till that time this can be used as a workaround.

Former Community Member
Not applicable

@Akshay Anand, the existing custom role has this content.

{ "organization": "prod", "path": "/environments", "permissions": [ "get" ] },

{ "organization": "prod", "path": "/environments/*", "permissions": [ "get" ] }

I want to remove "get" rights to the /environments and /environments/*

When I run the extra /, I am getting a Not Found, which makes sense.

Is there a way to remove get access and also is there a resource path to remove CRUD to "Spec". I am unable to find that.

No there is no role for specs today, though this is a feature enhancement we are tracking.