Update approval leavel
Update existing approval level
updateApprovalLevel
Updates an existing approval level by ID. Only fields included in input are changed.
Method
POST
Path
/graphql
Authentication
Bearer Token
Request Body Schema
Content-type: application/json
Variables
| Name | Type | Required | Description |
|---|---|---|---|
id | ID | Required | The approval level ID to update |
input.name | String | Optional | Display name |
input.code | String | Optional | Short code identifier |
input.rank | Int | Optional | Numeric rank |
input.threshold_price_requested | Float | Optional | Maximum requested price this level can handle |
input.threshold_price_approved | Float | Optional | Maximum price this level can approve |
input.description | String | Optional | Description |
Example Payload
{
"query": "mutation ($id: ID!, $input: UpdateApprovalLevelInput!) { updateApprovalLevel(id: $id, input: $input) { id name threshold_price_requested threshold_price_approved } }",
"variables": {
"id": "01JNQX4KZB7WNVR3MPXT6A0002",
"input": {
"threshold_price_requested": 15000.0,
"threshold_price_approved": 12000.0
}
}
}
Response
Returns the updated ApprovalLevel object.
Example Response
{
"data": {
"updateApprovalLevel": {
"id": "01JNQX4KZB7WNVR3MPXT6A0002",
"name": "Manager",
"threshold_price_requested": 15000.0,
"threshold_price_approved": 12000.0
}
}
}
Errors
Example Response
{
"errors": [
{
"message": "Unauthenticated."
}
]
}
Method
POSTPath
/graphqlAuthentication
Bearer TokenPath Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| id | string | Required | User identifier |