PUT api/accounting/mappings
Request Information
URI Parameters
None.
Body Parameters
AccountingMapSaveSubModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Create | Collection of AccountingMapCreateSubModel |
None. |
|
| Update | Collection of AccountingMapUpdateSubModel |
None. |
|
| Delete | Collection of integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"Create": [
{
"Debit": true,
"Credit": true,
"GLAccount": 3,
"MapType": "sample string 4",
"ValueFields": "sample string 5",
"ControlledItem": "sample string 6",
"Type": "sample string 7",
"MemoEntry": "sample string 8",
"Imported": true,
"PortfolioId": 1
},
{
"Debit": true,
"Credit": true,
"GLAccount": 3,
"MapType": "sample string 4",
"ValueFields": "sample string 5",
"ControlledItem": "sample string 6",
"Type": "sample string 7",
"MemoEntry": "sample string 8",
"Imported": true,
"PortfolioId": 1
}
],
"Update": [
{
"MapID": 1,
"Debit": true,
"Credit": true,
"GLAccount": 4,
"ValueFields": "sample string 5",
"ControlledItem": "sample string 6",
"Type": "sample string 7",
"MemoEntry": "sample string 8",
"Imported": true,
"MapType": "sample string 10",
"PortfolioId": 1
},
{
"MapID": 1,
"Debit": true,
"Credit": true,
"GLAccount": 4,
"ValueFields": "sample string 5",
"ControlledItem": "sample string 6",
"Type": "sample string 7",
"MemoEntry": "sample string 8",
"Imported": true,
"MapType": "sample string 10",
"PortfolioId": 1
}
],
"Delete": [
1,
2
]
}
application/xml, text/xml
Sample:
<AccountingMapSaveSubModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Automatrix.DMS.Business.Entities.SubModels">
<Create>
<AccountingMapCreateSubModel>
<ControlledItem>sample string 6</ControlledItem>
<Credit>true</Credit>
<Debit>true</Debit>
<GLAccount>3</GLAccount>
<Imported>true</Imported>
<MapType>sample string 4</MapType>
<MemoEntry>sample string 8</MemoEntry>
<PortfolioId>1</PortfolioId>
<Type>sample string 7</Type>
<ValueFields>sample string 5</ValueFields>
</AccountingMapCreateSubModel>
<AccountingMapCreateSubModel>
<ControlledItem>sample string 6</ControlledItem>
<Credit>true</Credit>
<Debit>true</Debit>
<GLAccount>3</GLAccount>
<Imported>true</Imported>
<MapType>sample string 4</MapType>
<MemoEntry>sample string 8</MemoEntry>
<PortfolioId>1</PortfolioId>
<Type>sample string 7</Type>
<ValueFields>sample string 5</ValueFields>
</AccountingMapCreateSubModel>
</Create>
<Delete xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:int>1</d2p1:int>
<d2p1:int>2</d2p1:int>
</Delete>
<Update>
<AccountingMapUpdateSubModel>
<ControlledItem>sample string 6</ControlledItem>
<Credit>true</Credit>
<Debit>true</Debit>
<GLAccount>4</GLAccount>
<Imported>true</Imported>
<MapID>1</MapID>
<MapType>sample string 10</MapType>
<MemoEntry>sample string 8</MemoEntry>
<PortfolioId>1</PortfolioId>
<Type>sample string 7</Type>
<ValueFields>sample string 5</ValueFields>
</AccountingMapUpdateSubModel>
<AccountingMapUpdateSubModel>
<ControlledItem>sample string 6</ControlledItem>
<Credit>true</Credit>
<Debit>true</Debit>
<GLAccount>4</GLAccount>
<Imported>true</Imported>
<MapID>1</MapID>
<MapType>sample string 10</MapType>
<MemoEntry>sample string 8</MemoEntry>
<PortfolioId>1</PortfolioId>
<Type>sample string 7</Type>
<ValueFields>sample string 5</ValueFields>
</AccountingMapUpdateSubModel>
</Update>
</AccountingMapSaveSubModel>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |