POST api/Quote/CopyQuote/{id}/{isNew}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

isNew

integer

Default value is 0

Body Parameters

CopyQuoteViewModel
NameDescriptionTypeAdditional information
WithinCurrentJob

boolean

None.

TransferQuoteTerms

boolean

None.

Job

ViewRelated

None.

Request Formats

application/json, text/json

Sample:
{
  "withinCurrentJob": true,
  "transferQuoteTerms": true,
  "job": {
    "projectID": 1,
    "jobID": 2,
    "quoteID": 3,
    "orderID": 4,
    "purchaseOrderID": 5,
    "workOrderID": 6,
    "discrepancyID": 7,
    "invoiceID": 8,
    "receiptID": 9,
    "name": "sample string 10"
  }
}

application/xml, text/xml

Sample:
<CopyQuoteViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GameTimeBAL.ViewModels">
  <Job>
    <DiscrepancyID>7</DiscrepancyID>
    <InvoiceID>8</InvoiceID>
    <JobID>2</JobID>
    <Name>sample string 10</Name>
    <OrderID>4</OrderID>
    <ProjectID>1</ProjectID>
    <PurchaseOrderID>5</PurchaseOrderID>
    <QuoteID>3</QuoteID>
    <ReceiptID>9</ReceiptID>
    <WorkOrderID>6</WorkOrderID>
  </Job>
  <TransferQuoteTerms>true</TransferQuoteTerms>
  <WithinCurrentJob>true</WithinCurrentJob>
</CopyQuoteViewModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.