Skip to main content

Update a delivery schedule for supplier product categories

PATCH 

/api/v1/suppliers/:id/delivery_schedules/:delivery_schedule_id

Update a delivery schedule for supplier product categories

Request

Path Parameters

    id stringrequired
    delivery_schedule_id stringrequired

Body

required

    data

    object

    type stringrequired

    Possible values: [delivery_schedules]

    attributes

    object

    monday integer[]

    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 integer[]

    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 integer[]

    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 integer[]

    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 integer[]

    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 integer[]

    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 integer[]

    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

    supplier_product_category_ids string[]

    Complete list of IDs of categories linked to this schedule

    add_supplier_product_category_ids string[]

    List of IDs of categories to additionally link to this schedule. Preserves categories already linked to this schedule.

    remove_supplier_product_category_ids string[]

    List of IDs of categories to dissociate from this schedule. Preserves categories whose ID is not provided in the list.

Responses

Update a delivery schedule for supplier product categories

Schema

    data

    object

    required

    id string
    type string

    attributes

    object

    monday string[]
    tuesday string[]
    wednesday string[]
    thursday string[]
    friday string[]
    saturday string[]
    sunday string[]
Loading...