updateContractBudgets
updateContractBudgets
Overview
This method updates the budget amounts, and optionally the payment method, for a contract.
By default, the billing period you nominate and all future billing periods are updated. Set update_single_period to yes to update only the nominated billing period.
This method requires the ContractBudgets:Update permission to be associated with your role.
Permissions
The permission for this api is stored in [gb_api_permissions]permission as 'ContractBudgets:Update'.
Only roles with a stored link to this permission in [gb_role_api_permissions] can run this api.
HTTP Method
Use the HTTP Method 'POST' for consuming this web service.
URL Examples
https://api.demo.catch-e.com/fm/contract/budgets/update https://api.{{environment}}.catch-e.com/fm/contract/budgets/update https://api.test.catch-e.com/fm/contract/budgets/update Input Fields (Header)
Input Fields (JSON)
budgets
The budgets object uses each posting class code as a property name (for example FIN, MAINT, REG). Each property holds the amounts for that posting class:
Example
{ "contract_id": "5678", "update_single_period": "no", "billing_period": 6, "budgets": { "FIN": { "amount_net": 260.0, "amount_gst": 26.0 } } } Response Details
Success
201 - Created
{ "affected_records": 4 } Error Response Details
{ "type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html", "title": "Unauthorized", "status": 401, "detail": "Unauthorized" } { "type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html", "title": "Forbidden", "status": 403, "detail": "Forbidden" } { "type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html", "title": "Not Acceptable", "status": 406, "detail": "Not Acceptable" } { "type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html", "title": "Unsupported Media Type", "status": 415, "detail": "Not Acceptable" } { "warning_messages": {}, "validation_messages": { "fieldName": { "validationExceptionCode": "A textual description of the validation exception" } }, "type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html", "title": "Unprocessable Entity", "status": 422, "detail": "Failed Validation" } { "type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html", "title": "Locked", "status": 423, "detail": "Locked" } { "type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html", "title": "string", "status": 599, "detail": "string" } { "type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html", "title": "string", "status": 599, "detail": "string" }