POST api/ApnAdminEntity/Save
Request Information
URI Parameters
None.
Body Parameters
EntitySaveRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| EntityID | integer |
None. |
|
| Section | string |
None. |
|
| Changes | Dictionary of string [key] and Object [value] |
None. |
|
| Rows | Collection of EntityGridRow |
None. |
|
| Reactivate | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"EntityID": 1,
"Section": "sample string 1",
"Changes": {
"sample string 1": {},
"sample string 3": {}
},
"Rows": [
{
"ID": 1,
"Selected": true,
"Code": "sample string 2",
"Description": "sample string 3",
"OpenOnAccountLoad": true,
"ShowInExtranet": true,
"AccountStatusTypeID": 1,
"AccountStatusID": 1,
"NavigationActionPackageID": 1
},
{
"ID": 1,
"Selected": true,
"Code": "sample string 2",
"Description": "sample string 3",
"OpenOnAccountLoad": true,
"ShowInExtranet": true,
"AccountStatusTypeID": 1,
"AccountStatusID": 1,
"NavigationActionPackageID": 1
}
],
"Reactivate": true
}
application/xml, text/xml
Sample:
<EntitySaveRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Debtrak.ApnExtensions.Admin">
<Changes xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:KeyValueOfstringanyType>
<d2p1:Key>sample string 1</d2p1:Key>
<d2p1:Value />
</d2p1:KeyValueOfstringanyType>
<d2p1:KeyValueOfstringanyType>
<d2p1:Key>sample string 3</d2p1:Key>
<d2p1:Value />
</d2p1:KeyValueOfstringanyType>
</Changes>
<EntityID>1</EntityID>
<Reactivate>true</Reactivate>
<Rows>
<EntityGridRow>
<AccountStatusID>1</AccountStatusID>
<AccountStatusTypeID>1</AccountStatusTypeID>
<Code>sample string 2</Code>
<Description>sample string 3</Description>
<ID>1</ID>
<NavigationActionPackageID>1</NavigationActionPackageID>
<OpenOnAccountLoad>true</OpenOnAccountLoad>
<Selected>true</Selected>
<ShowInExtranet>true</ShowInExtranet>
</EntityGridRow>
<EntityGridRow>
<AccountStatusID>1</AccountStatusID>
<AccountStatusTypeID>1</AccountStatusTypeID>
<Code>sample string 2</Code>
<Description>sample string 3</Description>
<ID>1</ID>
<NavigationActionPackageID>1</NavigationActionPackageID>
<OpenOnAccountLoad>true</OpenOnAccountLoad>
<Selected>true</Selected>
<ShowInExtranet>true</ShowInExtranet>
</EntityGridRow>
</Rows>
<Section>sample string 1</Section>
</EntitySaveRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ApiResultOfInt32| Name | Description | Type | Additional information |
|---|---|---|---|
| Response | ApiResponse |
None. |
|
| Data | integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"Response": {
"Success": true,
"ErrorMessage": "sample string 2"
},
"Data": 1
}
application/xml, text/xml
Sample:
<ApiResultOfint xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Debtrak.ApnExtensions">
<Data>1</Data>
<Response>
<ErrorMessage>sample string 2</ErrorMessage>
<Success>true</Success>
</Response>
</ApiResultOfint>