updateApproval
updateApproval
Overview
Update an approval.
This method is idempotent. This method is equivalent to a replace operation. For partial updates, use patchApproval.
An fm_approvals table lock is obtained during the execution of this API.
This method requires the Approvals:Update permission to be associated with your role.
It performs the same function as the corresponding action in the Approvals screen.
Permissions
The permission for this api is stored in [gb_api_permissions]permission as 'Approvals: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 'PUT' for consuming this web service.
URL Examples
https://api.demo.catch-e.com/fm/approvals/{approval_id}
https://api.{{environment}}.catch-e.com/fm/approvals/{approval_id}
https://api.test.catch-e.com/fm/approvals/{approval_id}
Input Fields (Path)
Input Fields (Header)
Input Fields (JSON)
{ "approval_limit": 0, "approval_sub_status_id": "string", "attachment_id": "string", "bank_details_correct_flag": "no", "billing_period": 0, "billing_period_item_no": 0, "client_phone": "string", "contract_id": "string", "credit_note_flag": "no", "driver_aware_flag": "no", "driver_bank_account_id": "string", "driver_name": "string", "driver_phone": "string", "external_order_number": "string", "invoice_date": "2026-07-25", "invoice_no": "string", "misc_phone": "string", "notes": "string", "franchise_notes": "string", "odometer": 0, "odometer_date": "2026-07-25", "odometer_valid_flag": "valid", "payee_payment_method_id": "string", "reimbursement_flag": "no", "status_flag": "active", "supplier_contact": "string", "supplier_franchise_vehicle_id": "string", "supplier_id": "string", "supplier_phone": "string", "maintenance_lines": [ { "maintenance_id": "string", "job_number": 0, "posting_class_id": "string", "vmrs_code_id": "string", "work_code_id": "string", "cause_code_id": "string", "type": "P", "recharge_flag": "Y", "description": "string", "quantity": 0, "retail_price": 0, "cost_price": 0, "gst_cost": 0 } ] }Response Details
Success
200 - Approval updated successfully
{ "approval_id": "string", "contract_id": "string", "user_id": "string", "supplier_id": "string", "supplier_franchise_vehicle_id": "string", "supplier_contact": "string", "supplier_phone": "string", "payee_payment_method_id": "string", "driver_bank_account_id": "string", "driver_name": "string", "driver_phone": "string", "client_phone": "string", "misc_phone": "string", "notes": "string", "franchise_notes": "string", "invoice_no": "string", "invoice_date": "2026-07-25", "billing_period": 0, "reimbursement_flag": "no", "driver_aware_flag": "no", "odometer": 0, "odometer_date": "2026-07-25", "odometer_valid_flag": "string", "bank_details_correct_flag": "no", "attachment_id": "string", "source": "internal", "external_order_number": "string", "approval_limit": 0, "created": "2026-07-25", "last_edit": "2026-07-25", "user_id_edit": "string", "posted_date": "2026-07-25", "credit_note_flag": "no", "approval_sub_status_id": "string", "requested_audit_attempt_count": 0, "status_flag": "string", "maintenance_lines": [ { "maintenance_id": "string", "job_number": 0, "posting_class_id": "string", "vmrs_code_id": "string", "work_code_id": "string", "cause_code_id": "string", "type": "P", "recharge_flag": "Y", "description": "string", "quantity": 0, "retail_price": 0, "cost_price": 0, "gst_cost": 0 } ] }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": "Liability Not Found", "status": 404, "detail": "Liability Not Found" }{ "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": { "fieldName": { "warningExceptionCode": "A textual description of the warning exception" } }, "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": "string", "status": 599, "detail": "string" }{ "type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html", "title": "string", "status": 599, "detail": "string" }