PUT api/Transactions/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

UpdateTransaction
NameDescriptionTypeAdditional information
BudgetId

integer

None.

UserId

integer

None.

ClientId

integer

None.

TransactionType

string

None.

TransactionDate

date

None.

TransactionDescription

string

None.

TransactionAmount

decimal number

None.

DocumentId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "BudgetId": 1,
  "UserId": 2,
  "ClientId": 3,
  "TransactionType": "sample string 4",
  "TransactionDate": "2017-08-19T23:12:58.4730983+01:00",
  "TransactionDescription": "sample string 6",
  "TransactionAmount": 7.0,
  "DocumentId": 1
}

application/xml, text/xml

Sample:
<Transaction xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Gecko.BudgetsService.DataTransferObjects.Update">
  <BudgetId>1</BudgetId>
  <ClientId>3</ClientId>
  <DocumentId>1</DocumentId>
  <TransactionAmount>7</TransactionAmount>
  <TransactionDate>2017-08-19T23:12:58.4730983+01:00</TransactionDate>
  <TransactionDescription>sample string 6</TransactionDescription>
  <TransactionType>sample string 4</TransactionType>
  <UserId>2</UserId>
</Transaction>

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

Response Information

Resource Description

None.