POST api/accounting/mappings

Request Information

URI Parameters

None.

Body Parameters

Collection of AccountingMap
NameDescriptionTypeAdditional information
MapID

integer

None.

Debit

boolean

None.

Credit

boolean

None.

GLAccount

integer

None.

ValueFields

string

None.

MapType

string

None.

ControlledItem

string

None.

Type

string

None.

MemoEntry

string

None.

Imported

boolean

None.

PortfolioId

integer

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "MapID": 1,
    "Debit": true,
    "Credit": true,
    "GLAccount": 4,
    "ValueFields": "sample string 5",
    "MapType": "sample string 6",
    "ControlledItem": "sample string 7",
    "Type": "sample string 8",
    "MemoEntry": "sample string 9",
    "Imported": true,
    "PortfolioId": 1
  },
  {
    "MapID": 1,
    "Debit": true,
    "Credit": true,
    "GLAccount": 4,
    "ValueFields": "sample string 5",
    "MapType": "sample string 6",
    "ControlledItem": "sample string 7",
    "Type": "sample string 8",
    "MemoEntry": "sample string 9",
    "Imported": true,
    "PortfolioId": 1
  }
]

application/xml, text/xml

Sample:
<ArrayOfAccountingMap xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Automatrix.DMS.Business.Entities.Entities">
  <AccountingMap>
    <ControlledItem>sample string 7</ControlledItem>
    <Credit>true</Credit>
    <Debit>true</Debit>
    <GLAccount>4</GLAccount>
    <Imported>true</Imported>
    <MapID>1</MapID>
    <MapType>sample string 6</MapType>
    <MemoEntry>sample string 9</MemoEntry>
    <PortfolioId>1</PortfolioId>
    <Type>sample string 8</Type>
    <ValueFields>sample string 5</ValueFields>
  </AccountingMap>
  <AccountingMap>
    <ControlledItem>sample string 7</ControlledItem>
    <Credit>true</Credit>
    <Debit>true</Debit>
    <GLAccount>4</GLAccount>
    <Imported>true</Imported>
    <MapID>1</MapID>
    <MapType>sample string 6</MapType>
    <MemoEntry>sample string 9</MemoEntry>
    <PortfolioId>1</PortfolioId>
    <Type>sample string 8</Type>
    <ValueFields>sample string 5</ValueFields>
  </AccountingMap>
</ArrayOfAccountingMap>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'List`1'

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.