Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Getting mint.resourceIdMismatch error while updating organisation properties

Dear Apigeeks,

I am trying to change the features properties to enable oAuth search and revoke token.

I am able to do a get request on url /v1/o/{org-name} but the put request to update properties is giving error:

{
  "code": "mint.resourceIdMismatch",
  "message": "URL id qualifier [{org-name}] does not match with the entity id [null] or some of these entites may not exist",
  "contexts": []
}

I don't get it what is this about?

Can someone please help me how shall I update the Org properties?

Solved Solved
0 4 253
1 ACCEPTED SOLUTION

Hi All,

Got this. Was able to achive update through a POST request rather than PUT using XML as payload.

Here is the curl for same:

curl -v -H "Authorization: Basic XXXXX" -H "Content-type:text/xml" -X POST -d '<Organization type="paid" name="org1"><DisplayName>org1</DisplayName><Properties><Property name="features.isMonetizationEnabled">true</Property><Property name="features.isOAuthRevokeEnabled">true</Property><Property name="features.isOAuth2TokenSearchEnabled">true</Property></Properties></Organization>' http://management-server:8080/v1/organizations/org1

Seems like @docs needs to be updated for this management API.

http://docs.apigee.com/management/apis/put/organizations/%7Borg_name%7D

Cheers...

View solution in original post

4 REPLIES 4