Was this helpful?

API Platform Base Path: https://api.enterprise.apigee.com/v1/o/{org_name}

API Resource Path:

/userroles/{role_name}/resourcepermissions

Description: Adds multiple permissions to multiple resources simultaneously.

Verb: POST
Auth: Basic Auth
Media types:
application/json
text/xml
Sample Request:
$ curl -X POST -H "Content-type:text/xml" -d \
'<resourcepermissions>
  <resourcepermission path="/users">
    <permissions>
      <permission>get</permission>
    </permissions>
  </resourcepermission>
  <resourcepermission path="/userroles">
    <permissions>
      <permission>get</permission>
    </permissions>
  </resourcepermission>
</resourcepermissions>' \
https://api.enterprise.apigee.com/v1/o/{org_name}/userroles/{role_name}/resourcepermissions \
-u myname:mypass
Sample Response:
<resourcepermissions>
  <resourcepermission path="/users">
    <permissions>
      <permission>get</permission>
    </permissions>
  </resourcepermission>
  <resourcepermission path="/userroles">
    <permissions>
      <permission>get</permission>
    </permissions>
  </resourcepermission>
</resourcepermissions>

Help or comments?

  • Something's not working: See Apigee Support
  • Something's wrong with the docs: Click Send Feedback in the lower right.
    (Incorrect? Unclear? Broken link? Typo?)