POST API/BudgetCategory/UpdateBudgetCategory

Request Information

URI Parameters

None.

Body Parameters

UpdateBudgetCategoryRequest
NameDescriptionTypeAdditional information
CustomerID

integer

None.

BudgetID

integer

None.

Category

BudgetCategory

None.

Token

string

None.

ValidationMessage

string

None.

ErrorCode

ErrorCodes

None.

Request Formats

application/json, text/json

Sample:
{
  "CustomerID": 1,
  "BudgetID": 2,
  "Category": {
    "ID": 1,
    "Name": "sample string 2",
    "Amount": 3.1,
    "AmountSpent": 4.1
  },
  "Token": "sample string 3",
  "ValidationMessage": "sample string 4",
  "ErrorCode": 101
}

application/xml, text/xml

Sample:
<UpdateBudgetCategoryRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Budget_WebAPI.Models">
  <Token>sample string 3</Token>
  <BudgetID>2</BudgetID>
  <Category>
    <Amount>3.1</Amount>
    <AmountSpent>4.1</AmountSpent>
    <ID>1</ID>
    <Name>sample string 2</Name>
  </Category>
  <CustomerID>1</CustomerID>
</UpdateBudgetCategoryRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Budget
NameDescriptionTypeAdditional information
ID

integer

None.

CustomerID

integer

None.

Period

BudgetPeriods

None.

StartDate

date

None.

EndDate

date

None.

Name

string

None.

Categories

Collection of BudgetCategory

None.

AccountType

string

None.

ActiveAccount

boolean

None.

ExpirationDate

date

None.

CustomerMessage

CustomerMessage

None.

Success

boolean

None.

ErrorCode

ErrorCodes

None.

Message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "ID": 1,
  "CustomerID": 2,
  "Period": 0,
  "StartDate": "2025-12-09T21:20:31.4614609+00:00",
  "EndDate": "2025-12-09T21:20:31.4614609+00:00",
  "Name": "sample string 4",
  "Categories": [
    {
      "ID": 1,
      "Name": "sample string 2",
      "Amount": 3.1,
      "AmountSpent": 4.1
    },
    {
      "ID": 1,
      "Name": "sample string 2",
      "Amount": 3.1,
      "AmountSpent": 4.1
    }
  ],
  "AccountType": "sample string 5",
  "ActiveAccount": true,
  "ExpirationDate": "2025-12-09T21:20:31.4614609+00:00",
  "CustomerMessage": {
    "Cheer": {
      "Message": "sample string 1"
    },
    "Advertisement": {
      "ID": 1,
      "ImageURL": "sample string 2",
      "DestinationURL": "sample string 3",
      "BackgroundColor": "sample string 4",
      "Sequence": 5,
      "IsNotification": true,
      "DisplayID": 7
    }
  },
  "Success": true,
  "ErrorCode": 101,
  "Message": "sample string 8"
}

application/xml, text/xml

Sample:
<Budget xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Budget_WebAPI.Models">
  <ErrorCode>InvalidToken</ErrorCode>
  <Message>sample string 8</Message>
  <Success>true</Success>
  <AccountType>sample string 5</AccountType>
  <ActiveAccount>true</ActiveAccount>
  <CustomerMessage>
    <Advertisement>
      <BackgroundColor>sample string 4</BackgroundColor>
      <DestinationURL>sample string 3</DestinationURL>
      <DisplayID>7</DisplayID>
      <ID>1</ID>
      <ImageURL>sample string 2</ImageURL>
      <IsNotification>true</IsNotification>
      <Sequence>5</Sequence>
    </Advertisement>
    <Cheer>
      <Message>sample string 1</Message>
    </Cheer>
  </CustomerMessage>
  <ExpirationDate>2025-12-09T21:20:31.4614609+00:00</ExpirationDate>
  <Categories>
    <BudgetCategory>
      <Amount>3.1</Amount>
      <AmountSpent>4.1</AmountSpent>
      <ID>1</ID>
      <Name>sample string 2</Name>
    </BudgetCategory>
    <BudgetCategory>
      <Amount>3.1</Amount>
      <AmountSpent>4.1</AmountSpent>
      <ID>1</ID>
      <Name>sample string 2</Name>
    </BudgetCategory>
  </Categories>
  <CustomerID>2</CustomerID>
  <EndDate>2025-12-09T21:20:31.4614609+00:00</EndDate>
  <ID>1</ID>
  <Name>sample string 4</Name>
  <Period>None</Period>
  <StartDate>2025-12-09T21:20:31.4614609+00:00</StartDate>
</Budget>