Skip to main content

supplyUpdateSupplier

Updates an existing supplier in the supply chain management system.

Authentication & Permissions

Requires the supply:update_supplier permission to execute this mutation.

Business Rules

  • Supplier must exist and be accessible within the brand
  • If changing name, new name must be unique within the brand
  • The specified brand must exist and be accessible
  • Email addresses are validated for proper format when provided
  • Website URLs must use HTTP or HTTPS protocol when provided

Common Errors

  • **Not Found Error**: Supplier does not exist or is not accessible
  • **Validation Error**: Supplier name already exists for this brand
  • **Validation Error**: Brand not found or inaccessible
  • **Permission Error**: Missing required supply:update_supplier permission
  • **Format Error**: Invalid email or website URL format

Update Behavior

Only provided fields are updated. Fields not included in the request remain unchanged. Set fields to null/empty to clear their values.

supplyUpdateSupplier(
input: UpdateSupplierInput!
): SupplySupplier!

Arguments

supplyUpdateSupplier.input ● UpdateSupplierInput! non-null input

Parameters for UpdateSupplier

Type

SupplySupplier object

Represents a supplier in the supply chain management system.

Supply suppliers are external parties that provide materials, products, or services to the supply chain. Each supplier maintains comprehensive business information, performance metrics, and operational details that help with supplier management and procurement decisions.

Supplier Information

  • **Business Details**: Name, contact information, location, and establishment year
  • **Performance Metrics**: Quality ratings, on-time delivery rates, response times
  • **Financial Terms**: Payment terms, shipping terms, tax information
  • **Operational Data**: Lead times, business hours, time zones, and Incoterms

Status Management

Suppliers can be active or inactive, allowing for proper lifecycle management without losing historical data and relationships.

Relationships

Each supplier belongs to a brand and can be associated with multiple products and addresses for comprehensive supplier management.