Update approval request
Update existing approval request details
updateApprovalRequest
Updates an existing approval request by ID. Only fields included in input are changed.
Note: Approving or declining individual line items (opportunities) is not available through the API.
Method
POST
Path
/graphql
Authentication
Bearer Token
Request Body Schema
Content-type: application/json
Variables
| Name | Type | Required | Description |
|---|---|---|---|
id | ID | Required | The approval request ID to update |
input.sales_contact | String | Optional | Name of the sales contact |
input.request_type | String | Optional | Type of request |
input.request_date | Date | Optional | Date of the request (Y-m-d) |
input.sales_region | String | Optional | Sales region |
input.validity_period | String | Optional | How long the approval remains valid |
input.customer_name | String | Optional | Customer name |
input.project_name | String | Optional | Project name |
input.account_number | String | Optional | Customer account number |
input.end_customer_name | String | Optional | End customer name |
input.rep_firm | String | Optional | Representative firm name |
input.expected_delivery_date | Date | Optional | Expected delivery date (Y-m-d) |
input.status | String | Optional | Request status (e.g. "submitted", "pending") |
input.other_details | JSON | Optional | Arbitrary additional data |
Example Payload
{
"query": "mutation ($id: ID!, $input: UpdateApprovalRequestInput!) { updateApprovalRequest(id: $id, input: $input) { id customer_name status updated_at } }",
"variables": {
"id": "01JNQX4KZB7WNVR3MPXT6A0010",
"input": {
"customer_name": "Acme Corporation",
"status": "submitted"
}
}
}
Response
Returns the updated ApprovalRequest object.
Example Response
{
"data": {
"updateApprovalRequest": {
"id": "01JNQX4KZB7WNVR3MPXT6A0010",
"customer_name": "Acme Corporation",
"status": "submitted",
"updated_at": "2026-06-03 09:45:00"
}
}
}
Errors
Example Response
{
"errors": [
{
"message": "Unauthenticated."
}
]
}
Method
POSTPath
/graphqlAuthentication
Bearer TokenPath Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| id | string | Required | User identifier |