POST UserRoles/Add
Request Information
URI Parameters
None.
Body Parameters
UserRoles| Name | Description | Type | Additional information |
|---|---|---|---|
| ID | integer |
None. |
|
| UserID | globally unique identifier |
None. |
|
| RoleID | integer |
None. |
|
| IsUse | boolean |
None. |
|
| CreatedDate | date |
None. |
|
| CreatedBy | string |
None. |
|
| UpdatedDate | date |
None. |
|
| ModifiedBy | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"ID": 1,
"UserID": "4f59c108-100e-4199-9ed5-88e4fd59ea64",
"RoleID": 3,
"IsUse": true,
"CreatedDate": "2025-12-06T12:01:45.0562054+07:00",
"CreatedBy": "sample string 5",
"UpdatedDate": "2025-12-06T12:01:45.0562054+07:00",
"ModifiedBy": "sample string 6"
}
application/xml, text/xml
Sample:
<UserRoles xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PetShop.API.Models"> <CreatedBy>sample string 5</CreatedBy> <CreatedDate>2025-12-06T12:01:45.0562054+07:00</CreatedDate> <ID>1</ID> <IsUse>true</IsUse> <ModifiedBy>sample string 6</ModifiedBy> <RoleID>3</RoleID> <UpdatedDate>2025-12-06T12:01:45.0562054+07:00</UpdatedDate> <UserID>4f59c108-100e-4199-9ed5-88e4fd59ea64</UserID> </UserRoles>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.