PUT /variant-parcels/{id}.json
Path parameters
-
Numeric ID of the instance
Minimum value is
1
.
Body Required
-
createdAt string(date-time)
Created at
-
Distance unit
Values are
in
orcm
. Default value isin
. -
id integer(int32)
Id
-
Packing depth
Default value is
2.4
. -
Packing height
Default value is
13.3
. -
Packing width
Default value is
11.5
. -
Source
Values are
import
orinternal
. Default value isinternal
. -
updatedAt string(date-time)
Updated at
-
Variant
-
Weight
Default value is
0
. -
Weight unit
Values are
g
,kg
,oz
, orlb
. Default value isg
.
PUT
/variant-parcels/{id}.json
curl \
-X PUT http://api.example.com/v1/variant-parcels/{id}.json \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"createdAt":"2024-05-04T09:42:00+00:00","distanceUnit":"in","id":42,"packingDepth":2.4,"packingHeight":13.3,"packingWidth":11.5,"source":"internal","tags":[],"updatedAt":"2024-05-04T09:42:00+00:00","variantId":42,"weight":0,"weightUnit":"g"}'
Request example
{
"createdAt": "2024-05-04T09:42:00+00:00",
"distanceUnit": "in",
"id": 42,
"packingDepth": 2.4,
"packingHeight": 13.3,
"packingWidth": 11.5,
"source": "internal",
"tags": [],
"updatedAt": "2024-05-04T09:42:00+00:00",
"variantId": 42,
"weight": 0,
"weightUnit": "g"
}