Was this helpful?

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

API Resource Path:

/userroles

Description: Creates a role in an organization

Verb: POST
Auth: Basic Auth
Media types:
application/json
text/xml
Sample Request:
$ curl -H "Content-type:application/json" -X POST -d \ 
'{
  "role" : [ {
    "name" : "apiproxyadmin"
  }, {
    "name" : "reportsadmin"
  } ]
}' \
https://api.enterprise.apigee.com/v1/o/{org_name}/userroles \
-u myname:mypass
Request Payload Elements:
Name Description Default Required?
role A list of named roles N/A Yes
Sample Response:
    {
  "role" : [ {
    "name" : "apiproxyadmin"
  }, {
    "name" : "reportsadmin"
  } ]
}

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?)