Create Product Dimensions
Create a new product dimensions record with length, width, height, and measurement unit information.Endpoint
Request Body
ID of the product to associate dimensions with
Length of the product in centimeters
Width of the product in centimeters
Height of the product in centimeters
Unit of measurement for dimensions (e.g., “cm”, “inches”)
Response
Unique identifier for the newly created product dimensions
ID of the associated product
Length of the product in centimeters
Width of the product in centimeters
Height of the product in centimeters
Unit of measurement for dimensions
Timestamp when the record was created
Status Codes
Product dimensions successfully created
Invalid request body or validation error
Example Request
Example Response
Response Headers
The response includes aLocation header with the URI of the created resource:
Validation Rules
productIdmust be a valid integer and reference an existing productlengthCm,widthCm, andheightCmmust be positive numbersdimensionUnitmust be a non-empty string- All required fields must be provided