Skip to main content

Update a Supplier Product Category for current Supplier

PATCH 

/api/v1/suppliers/:id/supplier_product_categories/:category_id

Update a Supplier Product Category for current Supplier

Request

Path Parameters

    id int32required
    category_id int32required

Body

required

    data

    object

    type stringrequired

    Possible values: [supplier_product_categories]

    attributes

    object

    parent_category_name string

    (DEPRECATED - use parent_category relationship instead). You can either: Use "nil" to make this category a main category (i.e. with no parent category). Use the current parent_category_name to keep the parent category unchanged. Provide an other existing supplier product category name to change the parent category.

    name string

    delivery_schedule

    object

    monday array

    An array including order lead time and deadline for this product category on this weekday. The format is: [lead-time-in-days, deadline-in-minutes-since-midnight], eg.: [2, 660] means the lead time is 2 days and the deadline is 11:00

    tuesday array

    An array including order lead time and deadline for this product category on this weekday. The format is: [lead-time-in-days, deadline-in-minutes-since-midnight], eg.: [2, 660] means the lead time is 2 days and the deadline is 11:00

    wednesday array

    An array including order lead time and deadline for this product category on this weekday. The format is: [lead-time-in-days, deadline-in-minutes-since-midnight], eg.: [2, 660] means the lead time is 2 days and the deadline is 11:00

    thursday array

    An array including order lead time and deadline for this product category on this weekday. The format is: [lead-time-in-days, deadline-in-minutes-since-midnight], eg.: [2, 660] means the lead time is 2 days and the deadline is 11:00

    friday array

    An array including order lead time and deadline for this product category on this weekday. The format is: [lead-time-in-days, deadline-in-minutes-since-midnight], eg.: [2, 660] means the lead time is 2 days and the deadline is 11:00

    saturday array

    An array including order lead time and deadline for this product category on this weekday. The format is: [lead-time-in-days, deadline-in-minutes-since-midnight], eg.: [2, 660] means the lead time is 2 days and the deadline is 11:00

    sunday array

    An array including order lead time and deadline for this product category on this weekday. The format is: [lead-time-in-days, deadline-in-minutes-since-midnight], eg.: [2, 660] means the lead time is 2 days and the deadline is 11:00

    ordering_deadline integer

    24h format in seconds, max 86400s.

    ordering_lead_time integer

    Provide the time in seconds.

    custom_category_id string

    Customizable field that you can use to set a custom category ID. The length of the string can't exceed 100 characters.

    relationships

    object

    parent_category

    object

    data

    object

    type stringrequired

    Possible values: [supplier_product_categories]

    id stringrequired

    ID of SupplierProductCategory which will be immediate parent of the category that is being updated. Use "id": null to transform this category in a main one (without parent). In order to keep current parent_category skip this relationship while updating this category.

Responses

Update a Supplier Product Category for current Supplier

Schema

    data

    object

    required

    id string
    type string

    attributes

    object

    name string

    children

    object[]

  • Array [

  • id stringrequired
    name stringrequired
  • ]

  • custom-category-id string
    parent-category string
    parent-name string
    delivery-schedule object
    ordering-deadline integer
    ordering-lead-time integer
Loading...