POST api/DynamicRules/EditTPDRulesById?TPId={TPId}&DocType={DocType}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| TPId | integer |
Required |
|
| DocType | string |
Required |
Body Parameters
BusinessRulesParam| Name | Description | Type | Additional information |
|---|---|---|---|
| BusinessRules | Collection of BusinessRule |
None. |
|
| DocumentsChanged | Collection of DocumentType |
None. |
Request Formats
application/json, text/json
Sample:
{
"BusinessRules": [
{
"BRId": 1,
"BRTPId": 2,
"BRDocumentType": "sample string 3",
"BRFieldId": "sample string 4",
"BRFieldName": "sample string 5",
"BRFieldType": "sample string 6",
"BRIsRequired": true,
"BRIsUsed": true,
"BRMaxLength": 9,
"BRFieldDropdownJson": "sample string 10",
"BRFieldDefaultVal": "sample string 11",
"BRFieldValidation": "sample string 12",
"BRSettingsName": "sample string 13",
"BROwnerISAID": "sample string 14",
"BROwnerGSID": "sample string 15",
"BRLevelId": "sample string 16",
"SlNo": 17
},
{
"BRId": 1,
"BRTPId": 2,
"BRDocumentType": "sample string 3",
"BRFieldId": "sample string 4",
"BRFieldName": "sample string 5",
"BRFieldType": "sample string 6",
"BRIsRequired": true,
"BRIsUsed": true,
"BRMaxLength": 9,
"BRFieldDropdownJson": "sample string 10",
"BRFieldDefaultVal": "sample string 11",
"BRFieldValidation": "sample string 12",
"BRSettingsName": "sample string 13",
"BROwnerISAID": "sample string 14",
"BROwnerGSID": "sample string 15",
"BRLevelId": "sample string 16",
"SlNo": 17
}
],
"DocumentsChanged": [
{
"DocumentTypeName": "sample string 1",
"DocumentNumber": "sample string 2"
},
{
"DocumentTypeName": "sample string 1",
"DocumentNumber": "sample string 2"
}
]
}
application/xml, text/xml
Sample:
<DynamicRulesModel.BusinessRulesParam xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DBusinessRulesAPI.Models">
<BusinessRules>
<DynamicRulesModel.BusinessRule>
<BRDocumentType>sample string 3</BRDocumentType>
<BRFieldDefaultVal>sample string 11</BRFieldDefaultVal>
<BRFieldDropdownJson>sample string 10</BRFieldDropdownJson>
<BRFieldId>sample string 4</BRFieldId>
<BRFieldName>sample string 5</BRFieldName>
<BRFieldType>sample string 6</BRFieldType>
<BRFieldValidation>sample string 12</BRFieldValidation>
<BRId>1</BRId>
<BRIsRequired>true</BRIsRequired>
<BRIsUsed>true</BRIsUsed>
<BRLevelId>sample string 16</BRLevelId>
<BRMaxLength>9</BRMaxLength>
<BROwnerGSID>sample string 15</BROwnerGSID>
<BROwnerISAID>sample string 14</BROwnerISAID>
<BRSettingsName>sample string 13</BRSettingsName>
<BRTPId>2</BRTPId>
<SlNo>17</SlNo>
</DynamicRulesModel.BusinessRule>
<DynamicRulesModel.BusinessRule>
<BRDocumentType>sample string 3</BRDocumentType>
<BRFieldDefaultVal>sample string 11</BRFieldDefaultVal>
<BRFieldDropdownJson>sample string 10</BRFieldDropdownJson>
<BRFieldId>sample string 4</BRFieldId>
<BRFieldName>sample string 5</BRFieldName>
<BRFieldType>sample string 6</BRFieldType>
<BRFieldValidation>sample string 12</BRFieldValidation>
<BRId>1</BRId>
<BRIsRequired>true</BRIsRequired>
<BRIsUsed>true</BRIsUsed>
<BRLevelId>sample string 16</BRLevelId>
<BRMaxLength>9</BRMaxLength>
<BROwnerGSID>sample string 15</BROwnerGSID>
<BROwnerISAID>sample string 14</BROwnerISAID>
<BRSettingsName>sample string 13</BRSettingsName>
<BRTPId>2</BRTPId>
<SlNo>17</SlNo>
</DynamicRulesModel.BusinessRule>
</BusinessRules>
<DocumentsChanged>
<DynamicRulesModel.DocumentType>
<DocumentNumber>sample string 2</DocumentNumber>
<DocumentTypeName>sample string 1</DocumentTypeName>
</DynamicRulesModel.DocumentType>
<DynamicRulesModel.DocumentType>
<DocumentNumber>sample string 2</DocumentNumber>
<DocumentTypeName>sample string 1</DocumentTypeName>
</DynamicRulesModel.DocumentType>
</DocumentsChanged>
</DynamicRulesModel.BusinessRulesParam>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
RootObjectOfString| Name | Description | Type | Additional information |
|---|---|---|---|
| Success | integer |
None. |
|
| Message | string |
None. |
|
| Result | string |
None. |
|
| NoOfRecords | integer |
None. |
|
| Alert | string |
None. |
|
| AlertType | string |
None. |
|
| Action | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"Success": 1,
"Message": "sample string 2",
"Result": "sample string 3",
"NoOfRecords": 4,
"Alert": "sample string 5",
"AlertType": "sample string 6",
"Action": "sample string 7"
}
application/xml, text/xml
Sample:
<RootObjectOfstring xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DBusinessRulesAPI.Models"> <Action>sample string 7</Action> <Alert>sample string 5</Alert> <AlertType>sample string 6</AlertType> <Message>sample string 2</Message> <NoOfRecords>4</NoOfRecords> <Result>sample string 3</Result> <Success>1</Success> </RootObjectOfstring>