Admin API/Team and commissions/Mutations
dispatchQuotasUpdate
mutationEach member's share of new orders (weight 1–20) and whether they get any.
Returns DispatchQuotasUpdatePayload!
mutation DispatchQuotasUpdate($quotas: [DispatchQuotaInput!]!) {
dispatchQuotasUpdate(quotas: $quotas) {
ok
userErrors {
code
message
field
}
}
}
# Variables
{
"quotas": [
{
"enabled": true,
"staffMemberId": "gid://ostorya/StaffMember/0f8c5b1e-…",
"weight": 1
}
]
}Arguments
- quotas[DispatchQuotaInput!]!required
Payload
- okBoolean!required
- userErrors[UserError!]!required