PUT api/Budgets/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

UpdateBudget
NameDescriptionTypeAdditional information
ClientId

integer

None.

BudgetName

string

None.

BudgetCode

string

None.

StartDate

date

None.

ExpiryDate

date

None.

BudgetSpendLimit

decimal number

None.

ReachedLimitDate

date

None.

BranchAllowance

decimal number

None.

Reference

string

None.

BudgetStatus

string

None.

CancellationDate

date

None.

CancellationReason

string

None.

Request Formats

application/json, text/json

Sample:
{
  "ClientId": 1,
  "BudgetName": "sample string 2",
  "BudgetCode": "sample string 3",
  "StartDate": "2017-08-19T23:14:21.4248563+01:00",
  "ExpiryDate": "2017-08-19T23:14:21.4248563+01:00",
  "BudgetSpendLimit": 6.0,
  "ReachedLimitDate": "2017-08-19T23:14:21.4248563+01:00",
  "BranchAllowance": 7.0,
  "Reference": "sample string 8",
  "BudgetStatus": "sample string 9",
  "CancellationDate": "2017-08-19T23:14:21.4248563+01:00",
  "CancellationReason": "sample string 10"
}

application/xml, text/xml

Sample:
<Budget xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Gecko.BudgetsService.DataTransferObjects.Update">
  <BranchAllowance>7</BranchAllowance>
  <BudgetCode>sample string 3</BudgetCode>
  <BudgetName>sample string 2</BudgetName>
  <BudgetSpendLimit>6</BudgetSpendLimit>
  <BudgetStatus>sample string 9</BudgetStatus>
  <CancellationDate>2017-08-19T23:14:21.4248563+01:00</CancellationDate>
  <CancellationReason>sample string 10</CancellationReason>
  <ClientId>1</ClientId>
  <ExpiryDate>2017-08-19T23:14:21.4248563+01:00</ExpiryDate>
  <ReachedLimitDate>2017-08-19T23:14:21.4248563+01:00</ReachedLimitDate>
  <Reference>sample string 8</Reference>
  <StartDate>2017-08-19T23:14:21.4248563+01:00</StartDate>
</Budget>

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

Response Information

Resource Description

None.