POST api/Budget

Request Information

URI Parameters

None.

Body Parameters

Budget
NameDescriptionTypeAdditional information
budgetLines

Collection of BudgetLine

None.

budgetId

integer

None.

name

string

None.

year

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "budgetId": 1,
  "name": "sample string 2",
  "year": 1,
  "budgetLines": [
    {
      "budgetId": 1,
      "lineNo": 1,
      "year": 1,
      "period": 1,
      "ledgerAccountNo": 1,
      "debitAmountIncurred": 1.0,
      "creditAmountInvoiced": 1.0,
      "dimentions": {
        "employeeNo": 1,
        "orgUnit1": 1,
        "orgUnit2": 1,
        "orgUnit3": 1,
        "orgUnit4": 1,
        "orgUnit5": 1,
        "orgUnit6": 1
      }
    },
    {
      "budgetId": 1,
      "lineNo": 1,
      "year": 1,
      "period": 1,
      "ledgerAccountNo": 1,
      "debitAmountIncurred": 1.0,
      "creditAmountInvoiced": 1.0,
      "dimentions": {
        "employeeNo": 1,
        "orgUnit1": 1,
        "orgUnit2": 1,
        "orgUnit3": 1,
        "orgUnit4": 1,
        "orgUnit5": 1,
        "orgUnit6": 1
      }
    }
  ]
}

application/xml, text/xml

Sample:
<Budget xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <budgetId>1</budgetId>
  <name>sample string 2</name>
  <year>1</year>
  <budgetLines>
    <BudgetLine>
      <budgetId>1</budgetId>
      <lineNo>1</lineNo>
      <year>1</year>
      <period>1</period>
      <ledgerAccountNo>1</ledgerAccountNo>
      <debitAmountIncurred>1</debitAmountIncurred>
      <creditAmountInvoiced>1</creditAmountInvoiced>
      <dimentions>
        <employeeNo>1</employeeNo>
        <orgUnit1>1</orgUnit1>
        <orgUnit2>1</orgUnit2>
        <orgUnit3>1</orgUnit3>
        <orgUnit4>1</orgUnit4>
        <orgUnit5>1</orgUnit5>
        <orgUnit6>1</orgUnit6>
      </dimentions>
    </BudgetLine>
    <BudgetLine>
      <budgetId>1</budgetId>
      <lineNo>1</lineNo>
      <year>1</year>
      <period>1</period>
      <ledgerAccountNo>1</ledgerAccountNo>
      <debitAmountIncurred>1</debitAmountIncurred>
      <creditAmountInvoiced>1</creditAmountInvoiced>
      <dimentions>
        <employeeNo>1</employeeNo>
        <orgUnit1>1</orgUnit1>
        <orgUnit2>1</orgUnit2>
        <orgUnit3>1</orgUnit3>
        <orgUnit4>1</orgUnit4>
        <orgUnit5>1</orgUnit5>
        <orgUnit6>1</orgUnit6>
      </dimentions>
    </BudgetLine>
  </budgetLines>
</Budget>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Budget
NameDescriptionTypeAdditional information
budgetLines

Collection of BudgetLine

None.

budgetId

integer

None.

name

string

None.

year

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "budgetId": 1,
  "name": "sample string 2",
  "year": 1,
  "budgetLines": [
    {
      "budgetId": 1,
      "lineNo": 1,
      "year": 1,
      "period": 1,
      "ledgerAccountNo": 1,
      "debitAmountIncurred": 1.0,
      "creditAmountInvoiced": 1.0,
      "dimentions": {
        "employeeNo": 1,
        "orgUnit1": 1,
        "orgUnit2": 1,
        "orgUnit3": 1,
        "orgUnit4": 1,
        "orgUnit5": 1,
        "orgUnit6": 1
      }
    },
    {
      "budgetId": 1,
      "lineNo": 1,
      "year": 1,
      "period": 1,
      "ledgerAccountNo": 1,
      "debitAmountIncurred": 1.0,
      "creditAmountInvoiced": 1.0,
      "dimentions": {
        "employeeNo": 1,
        "orgUnit1": 1,
        "orgUnit2": 1,
        "orgUnit3": 1,
        "orgUnit4": 1,
        "orgUnit5": 1,
        "orgUnit6": 1
      }
    }
  ]
}

application/xml, text/xml

Sample:
<Budget xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <budgetId>1</budgetId>
  <name>sample string 2</name>
  <year>1</year>
  <budgetLines>
    <BudgetLine>
      <budgetId>1</budgetId>
      <lineNo>1</lineNo>
      <year>1</year>
      <period>1</period>
      <ledgerAccountNo>1</ledgerAccountNo>
      <debitAmountIncurred>1</debitAmountIncurred>
      <creditAmountInvoiced>1</creditAmountInvoiced>
      <dimentions>
        <employeeNo>1</employeeNo>
        <orgUnit1>1</orgUnit1>
        <orgUnit2>1</orgUnit2>
        <orgUnit3>1</orgUnit3>
        <orgUnit4>1</orgUnit4>
        <orgUnit5>1</orgUnit5>
        <orgUnit6>1</orgUnit6>
      </dimentions>
    </BudgetLine>
    <BudgetLine>
      <budgetId>1</budgetId>
      <lineNo>1</lineNo>
      <year>1</year>
      <period>1</period>
      <ledgerAccountNo>1</ledgerAccountNo>
      <debitAmountIncurred>1</debitAmountIncurred>
      <creditAmountInvoiced>1</creditAmountInvoiced>
      <dimentions>
        <employeeNo>1</employeeNo>
        <orgUnit1>1</orgUnit1>
        <orgUnit2>1</orgUnit2>
        <orgUnit3>1</orgUnit3>
        <orgUnit4>1</orgUnit4>
        <orgUnit5>1</orgUnit5>
        <orgUnit6>1</orgUnit6>
      </dimentions>
    </BudgetLine>
  </budgetLines>
</Budget>