editObject


SoftLayer_User_Permission_Role::editObject

Edit an existing customer permission role

Description

Allows a user to modify the name and description of an existing customer permission role. Customer permission roles must set the systemFlag attribute to false. The SYSTEM type is reserved for internal use. The account id supplied in the template permission role must match account id of the user who is creating the permission role. The user who is creating the permission role must have the permission to manage users.

Parameters

Name Type Description
templateObject SoftLayer_User_Permission_Role A skeleton SoftLayer_User_Permission_Role object with only the properties defined that you wish to change. Unchanged properties are left alone.

Required Headers

Optional Headers

Return Values

Error Handling

  • Throws the exception “You cannot edit role: Permission Denied.” if a customer user attempts to edit a permission role without the proper permission.
curl -g -u $SL_USER:$SL_APIKEY -X POST -d '{"parameters": [SoftLayer_User_Permission_Role]}' \
'https://api.softlayer.com/rest/v3.1/SoftLayer_User_Permission_Role/{SoftLayer_User_Permission_RoleID}/editObject'