PUT api/Configuration/CostDocuments

Create a new Cost Document

Request Information

URI Parameters

None.

Body Parameters

CostDocumentPost
NameDescriptionTypeAdditional information
Type

string

Required

Code

string

Required

Description

string

Required

Supplier

string

None.

Date

date

Required

Request Formats

Sample:
{
  "Type": "sample string 1",
  "Code": "sample string 2",
  "Description": "sample string 3",
  "Supplier": "sample string 4",
  "Date": "2024-11-14T16:43:34.9034291+00:00"
}
Sample:
<CostDocumentPost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Models.Apontamentos">
  <Code>sample string 2</Code>
  <Date>2024-11-14T16:43:34.9034291+00:00</Date>
  <Description>sample string 3</Description>
  <Supplier>sample string 4</Supplier>
  <Type>sample string 1</Type>
</CostDocumentPost>
Sample:

Sample not available.

Sample:
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Type"

sample string 1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Code"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Description"

sample string 3
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Supplier"

sample string 4
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Date"

2024-11-14T16:43:34.9034291+00:00
--MultipartDataMediaFormatterBoundary1q2w3e--

Response Information

Resource Description

Returns the ID of the Cost Document; Status code: 201 (Created)

string

Response Formats

Sample:
"sample string 1"
Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>
Sample:
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name=""

sample string 1
--MultipartDataMediaFormatterBoundary1q2w3e--