Budgets - Create a budget

API Url

Use it to create a new budget

POST
http://localhost:16010/ProMarkREST/web/System/budgets

Permissions: user

Parameter

FieldTypeDescription
requestObject

Main object containing the request data.

  dataObject

Object containg data to be uploaded.

    budgetsObject[]
      budgetTypeNumber

The budget type. 0: Cost 1: Hours 2: Manning 3: Other

      descriptionString

The budget description

      nameString

The name of the new budget

Request example:

{
"request": {
"data": {
"budgets": [
{
"name": "Budget1",
"description": "description here",
"budgetType": 1
}
]
}
}
}

Success 200

FieldTypeDescription
responseObject

Main object containing the response data.

  messageoptionalObject

Object containing response messages.

    codeNumber

Message code.

    textString

Message text.

    typeString

Type of message.

Allowed values:"warning""info"

Error 4xx

FieldTypeDescription
responseObject

Main object containing the response data.

  dataObject

Object containing the requested data (empty).

  errorCodeNumber

Error code.

  errorMessageString

Error description.