role_create¶
-
POST /orgs/{oid}/roles
Create a new role in an organization. A role contains one or more entitlements which determine the access rights to various features.
Please refer to role for a complete list of all the role attributes.
Security Summary¶
- Requires Authentication:
true - Entitlements Required:
org_administrate
Example Request¶
curl "https://uforge.example.com/api/orgs/{oid}/roles" -X POST \
-u USER_LOGIN:PASSWORD -H "Accept: application/xml"-H "Content-type: application/xml" --data-binary "@representation.xml"
Example of representation.xml content (the request body):
<ns0:role xmlns:ns0="http://www.usharesoft.com/uforge">
<name>Example Role</name>
</ns0:role>