Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
The user role identifier. |
integer |
Required |
Body Parameters
The user role.
Pico.UserRole| Name | Description | Type | Additional information |
|---|---|---|---|
| isDefault |
Gets or sets a value indicating whether this is default user role. |
boolean |
None. |
| id |
Gets or sets the user role identifier. |
integer |
None. |
| role |
Gets or sets the role identifier. |
integer |
None. |
| user |
Gets or sets the user identifier. |
integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"isDefault": true,
"id": "2",
"role": "3",
"user": "4"
}
text/html
Sample:
{"isDefault":true,"id":"2","role":"3","user":"4"}
application/xml, text/xml
Sample:
<UserRole xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <IsDefault>true</IsDefault> <UserRoleId>2</UserRoleId> <RoleId>3</RoleId> <UserId>4</UserId> </UserRole>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
The updated user role.
Pico.UserRole| Name | Description | Type | Additional information |
|---|---|---|---|
| isDefault |
Gets or sets a value indicating whether this is default user role. |
boolean |
None. |
| id |
Gets or sets the user role identifier. |
integer |
None. |
| role |
Gets or sets the role identifier. |
integer |
None. |
| user |
Gets or sets the user identifier. |
integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"isDefault": true,
"id": "2",
"role": "3",
"user": "4"
}
text/html
Sample:
{"isDefault":true,"id":"2","role":"3","user":"4"}
application/xml, text/xml
Sample:
<UserRole xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <IsDefault>true</IsDefault> <UserRoleId>2</UserRoleId> <RoleId>3</RoleId> <UserId>4</UserId> </UserRole>