POST api/mapRoletoProduct/update
Request Information
URI Parameters
None.
Body Parameters
MapProductToRoleDTO| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| RoleId | integer |
None. |
|
| RoleName | string |
None. |
|
| Status | boolean |
None. |
|
| ProductTypeDTOs | Collection of ProductTypeDTO |
None. |
|
| ProductTypeIds | Collection of integer |
None. |
|
| RoleDTOs | Collection of RoleDTO |
None. |
|
| MapProductTypeDTOs | Collection of MapProductTypeDTO |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": 1,
"RoleId": 2,
"RoleName": "sample string 3",
"Status": true,
"ProductTypeDTOs": [
{
"Id": 1,
"Code": "sample string 2",
"Name": "sample string 3",
"Status": true,
"ProductName": "sample string 5"
},
{
"Id": 1,
"Code": "sample string 2",
"Name": "sample string 3",
"Status": true,
"ProductName": "sample string 5"
}
],
"ProductTypeIds": [
1,
2
],
"RoleDTOs": [
{
"Id": 1,
"Code": "sample string 2",
"Name": "sample string 3",
"Description": "sample string 4",
"RoleTypeDTOs": [
{
"Id": 1,
"Name": "sample string 2",
"Status": true
},
{
"Id": 1,
"Name": "sample string 2",
"Status": true
}
],
"RoleTypeId": 1,
"RoleTypeName": "sample string 5",
"CreatedBy": 1,
"CreatedDate": "2025-12-06T11:32:28.711084+00:00",
"ModifiedBy": 1,
"ModifiedDate": "2025-12-06T11:32:28.711084+00:00",
"Status": true
},
{
"Id": 1,
"Code": "sample string 2",
"Name": "sample string 3",
"Description": "sample string 4",
"RoleTypeDTOs": [
{
"Id": 1,
"Name": "sample string 2",
"Status": true
},
{
"Id": 1,
"Name": "sample string 2",
"Status": true
}
],
"RoleTypeId": 1,
"RoleTypeName": "sample string 5",
"CreatedBy": 1,
"CreatedDate": "2025-12-06T11:32:28.711084+00:00",
"ModifiedBy": 1,
"ModifiedDate": "2025-12-06T11:32:28.711084+00:00",
"Status": true
}
],
"MapProductTypeDTOs": [
{
"Id": 1,
"MapProductTypeToRoleId": 1,
"ProductTypeId": 1,
"ProductTypeName": "sample string 2",
"Status": true
},
{
"Id": 1,
"MapProductTypeToRoleId": 1,
"ProductTypeId": 1,
"ProductTypeName": "sample string 2",
"Status": true
}
]
}
application/xml, text/xml
Sample:
<MapProductToRoleDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SUM.Prod.RS.Common.Components.DTO.ProductSetup">
<Id>1</Id>
<MapProductTypeDTOs>
<MapProductTypeDTO>
<Id>1</Id>
<MapProductTypeToRoleId>1</MapProductTypeToRoleId>
<ProductTypeId>1</ProductTypeId>
<ProductTypeName>sample string 2</ProductTypeName>
<Status>true</Status>
</MapProductTypeDTO>
<MapProductTypeDTO>
<Id>1</Id>
<MapProductTypeToRoleId>1</MapProductTypeToRoleId>
<ProductTypeId>1</ProductTypeId>
<ProductTypeName>sample string 2</ProductTypeName>
<Status>true</Status>
</MapProductTypeDTO>
</MapProductTypeDTOs>
<ProductTypeDTOs>
<ProductTypeDTO>
<Code>sample string 2</Code>
<Id>1</Id>
<Name>sample string 3</Name>
<ProductName>sample string 5</ProductName>
<Status>true</Status>
</ProductTypeDTO>
<ProductTypeDTO>
<Code>sample string 2</Code>
<Id>1</Id>
<Name>sample string 3</Name>
<ProductName>sample string 5</ProductName>
<Status>true</Status>
</ProductTypeDTO>
</ProductTypeDTOs>
<ProductTypeIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:int>1</d2p1:int>
<d2p1:int>2</d2p1:int>
</ProductTypeIds>
<RoleDTOs xmlns:d2p1="http://schemas.datacontract.org/2004/07/SUM.Prod.RS.Common.Components.DTO.User">
<d2p1:RoleDTO>
<CreatedBy xmlns="http://schemas.datacontract.org/2004/07/SUM.Prod.RS.Common.Components.DTO">1</CreatedBy>
<CreatedDate xmlns="http://schemas.datacontract.org/2004/07/SUM.Prod.RS.Common.Components.DTO">2025-12-06T11:32:28.711084+00:00</CreatedDate>
<ModifiedBy xmlns="http://schemas.datacontract.org/2004/07/SUM.Prod.RS.Common.Components.DTO">1</ModifiedBy>
<ModifiedDate xmlns="http://schemas.datacontract.org/2004/07/SUM.Prod.RS.Common.Components.DTO">2025-12-06T11:32:28.711084+00:00</ModifiedDate>
<Status xmlns="http://schemas.datacontract.org/2004/07/SUM.Prod.RS.Common.Components.DTO">true</Status>
<d2p1:Code>sample string 2</d2p1:Code>
<d2p1:Description>sample string 4</d2p1:Description>
<d2p1:Id>1</d2p1:Id>
<d2p1:Name>sample string 3</d2p1:Name>
<d2p1:RoleTypeDTOs>
<d2p1:RoleTypeDTO>
<d2p1:Id>1</d2p1:Id>
<d2p1:Name>sample string 2</d2p1:Name>
<d2p1:Status>true</d2p1:Status>
</d2p1:RoleTypeDTO>
<d2p1:RoleTypeDTO>
<d2p1:Id>1</d2p1:Id>
<d2p1:Name>sample string 2</d2p1:Name>
<d2p1:Status>true</d2p1:Status>
</d2p1:RoleTypeDTO>
</d2p1:RoleTypeDTOs>
<d2p1:RoleTypeId>1</d2p1:RoleTypeId>
<d2p1:RoleTypeName>sample string 5</d2p1:RoleTypeName>
</d2p1:RoleDTO>
<d2p1:RoleDTO>
<CreatedBy xmlns="http://schemas.datacontract.org/2004/07/SUM.Prod.RS.Common.Components.DTO">1</CreatedBy>
<CreatedDate xmlns="http://schemas.datacontract.org/2004/07/SUM.Prod.RS.Common.Components.DTO">2025-12-06T11:32:28.711084+00:00</CreatedDate>
<ModifiedBy xmlns="http://schemas.datacontract.org/2004/07/SUM.Prod.RS.Common.Components.DTO">1</ModifiedBy>
<ModifiedDate xmlns="http://schemas.datacontract.org/2004/07/SUM.Prod.RS.Common.Components.DTO">2025-12-06T11:32:28.711084+00:00</ModifiedDate>
<Status xmlns="http://schemas.datacontract.org/2004/07/SUM.Prod.RS.Common.Components.DTO">true</Status>
<d2p1:Code>sample string 2</d2p1:Code>
<d2p1:Description>sample string 4</d2p1:Description>
<d2p1:Id>1</d2p1:Id>
<d2p1:Name>sample string 3</d2p1:Name>
<d2p1:RoleTypeDTOs>
<d2p1:RoleTypeDTO>
<d2p1:Id>1</d2p1:Id>
<d2p1:Name>sample string 2</d2p1:Name>
<d2p1:Status>true</d2p1:Status>
</d2p1:RoleTypeDTO>
<d2p1:RoleTypeDTO>
<d2p1:Id>1</d2p1:Id>
<d2p1:Name>sample string 2</d2p1:Name>
<d2p1:Status>true</d2p1:Status>
</d2p1:RoleTypeDTO>
</d2p1:RoleTypeDTOs>
<d2p1:RoleTypeId>1</d2p1:RoleTypeId>
<d2p1:RoleTypeName>sample string 5</d2p1:RoleTypeName>
</d2p1:RoleDTO>
</RoleDTOs>
<RoleId>2</RoleId>
<RoleName>sample string 3</RoleName>
<Status>true</Status>
</MapProductToRoleDTO>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
booleanResponse Formats
application/json, text/json
Sample:
true
application/xml, text/xml
Sample:
<boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean>