POST api/quarryyard/sync/accept

Request Information

URI Parameters

None.

Body Parameters

AcceptSyncRequest
NameDescriptionTypeAdditional information
SyncID

integer

None.

TargetLedgerID

integer

None.

UserID

integer

None.

Items

Collection of AcceptSyncItemRequest

None.

FinancialYearID

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "SyncID": 1,
  "TargetLedgerID": 2,
  "UserID": 3,
  "Items": [
    {
      "LineIndex": 1,
      "ProductID": 2,
      "UnitID": 3
    },
    {
      "LineIndex": 1,
      "ProductID": 2,
      "UnitID": 3
    }
  ],
  "FinancialYearID": 4
}

application/xml, text/xml

Sample:
<AcceptSyncRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CrushMateBackendAPI.Controllers">
  <FinancialYearID>4</FinancialYearID>
  <Items>
    <AcceptSyncItemRequest>
      <LineIndex>1</LineIndex>
      <ProductID>2</ProductID>
      <UnitID>3</UnitID>
    </AcceptSyncItemRequest>
    <AcceptSyncItemRequest>
      <LineIndex>1</LineIndex>
      <ProductID>2</ProductID>
      <UnitID>3</UnitID>
    </AcceptSyncItemRequest>
  </Items>
  <SyncID>1</SyncID>
  <TargetLedgerID>2</TargetLedgerID>
  <UserID>3</UserID>
</AcceptSyncRequest>

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 'AcceptSyncRequest'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.