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 182
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

Could not reproduce the issue. Kindly ensure the valid API resource path is hit.

This may be of some help - Update organization properties

Hi @Nisha Mallesh,

I have referred the same documentation. This is for an on-prem organisation.

This is the call I'm making to update properties.

curl -X PUT -H "Authorization: Basic XXXXXXXX" -H "Content-Type: application/json" -d '{
  "properties": {
    "property": [
      {
        "name": "features.isMonetizationEnabled",
        "value": "true"
      },
      {
        "name": "features.isOAuthRevokeEnabled",
        "value": "true"
      },
      {
        "name": "features.isOAuth2TokenSearchEnabled",
        "value": "true"
      }
      
    ]
  }
  
}' "http://management-server:8080/v1/organizations/org1"

Response:

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

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...

Thanks for pointing this out, @Mohammed Zuber. I've updated the docs with the POST verb, and I've added an XML sample payload. Much appreciated!