Ostorya dev docs

Admin API/Team and commissions/Mutations

dispatchQuotasUpdate

mutation

Each 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

Payload

okBoolean!required
userErrors[UserError!]!required