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
- application/vnd.api+json
Body
required
data
object
Possible values: [delivery_schedules
]
attributes
object
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
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
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
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
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
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
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
Complete list of IDs of categories linked to this schedule
List of IDs of categories to additionally link to this schedule. Preserves categories already linked to this schedule.
List of IDs of categories to dissociate from this schedule. Preserves categories whose ID is not provided in the list.
Responses
- 200
Update a delivery schedule for supplier product categories
- application/vnd.api+json
- Schema
- Example (from schema)
- Example
Schema
data
object
required
attributes
object
{
"data": {
"id": "string",
"type": "string",
"attributes": {
"monday": [
"string"
],
"tuesday": [
"string"
],
"wednesday": [
"string"
],
"thursday": [
"string"
],
"friday": [
"string"
],
"saturday": [
"string"
],
"sunday": [
"string"
]
}
}
}
{
"data": {
"id": "4e60f22f-0c77-4d2c-9885-0293d739d9bf",
"type": "delivery-schedules",
"attributes": {
"monday": [
1,
900
],
"tuesday": [
1,
660
],
"wednesday": [
2,
900
],
"thursday": [
2,
660
],
"friday": [],
"saturday": [],
"sunday": [],
"supplier-product-categories": [
"ebf6adc0-a6b9-407d-b982-14fcc9827e25"
],
"supplier-id": "9b985d9a-cd5c-4c1a-813d-ed6f188adec5"
}
}
}