delivery_lead_times
Update a delivery lead time
Changed onUpdate a delivery lead time
patch/delivery_lead_times/{deliveryLeadTimeId}
Request
- Base URLhttps://{your_organization_slug}.commercelayer.io/api
- URLhttps://{your_organization_slug}.commercelayer.io/api/delivery_lead_times/{deliveryLeadTimeId}
- AuthHTTP bearer
Path parameters
deliveryLeadTimeIdstring required
The resource's id
Request body
Example request
{
"data": {
"id": "XAyRWNUzyN",
"attributes": {
"min_hours": 48,
"max_hours": 72,
"reference": "ANY-EXTERNAL-REFEFERNCE",
"reference_origin": "ANY-EXTERNAL-REFEFERNCE-ORIGIN",
"metadata": {
"foo": "bar"
}
},
"relationships": {
"stock_location": {
"data": {
"id": "XAyRWNUzyN"
}
},
"shipping_method": {
"data": {
"id": "XAyRWNUzyN"
}
}
}
}
}Response
The updated delivery lead time object
Changes
- breaking
added the new required request property
/// - breaking
added the new required request property
/// - breaking
request property
/was restricted to a list of enum values - warning
removed the request property
/// - warning
removed the request property
/// - warning
removed the request property
/// - warning
removed the request property
/// - info
the request property
//became nullable - info
the request property
//became nullable - info
the request property
//became nullable - info
the
request property default valuedelivery_lead_timeswas removed - info
added the new
delivery_lead_timesenum value to the request property/ - info
added the media type
application/vnd.api+jsonfor the response with the status
- breaking