Update a size chart
PUT https://{handle}.myshopline.com/admin/openapi/v20260901/sizechart.json
handle : The store's unique identifier, which is the prefix of the store's domain name. For example, if a store's domain name is open001.myshopline.com , the store handle is open001 .Update a size chart. After the update, the product sizes will prioritize displaying the latest data.
Request Headers
- Content-Type string requiredThe field must be set to the fixed value
application/json; charset=utf-8. - Authorization string requiredThe access token for the API resource. Refer to App authorization to obtain the access token, and then pass the obtained token in the Bearer format.Example:
Bearer eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJhcHBJZCI6MCwiYXBwS2V5IjoiNzU2ZjI1NWE2NjdlZTcwNTk1MzM0ZjVjYzk4NzU5MzBmN2E3NGZjMSIsImV4cCI6MTg3OTQ4MjA3NiwiaXNzIjoieXNvdWwiLCJzZWxsZXJJZCI6IjIwMDAyMzQ4ODAiLCJzdG9yZUlkIjoiMTY3MjM2OTcyOTYwNiIsInRpbWVzdGFtcCI6MTc4NDc4NzY3NjY2MSwidmVyc2lvbiI6IlYyIn0.3ZzbGAH4cLU1QR2VPEvMOQInUDvus-C4amkINSQIPuNVlXsFKj0sAt1c0KnUy9MWUOFV9cHlkf7J90r2y1FzpA
Request Body
reqobject
Request parameters.status booleanWhether to publish the size chart.true: publishfalse: not publish
Default value:falsecollection_list arrayWhen theapplicable_product_typeis set toCOLLECTION, use this field to pass in a list of collection IDs to which the size chart applies.Maximum size : 50Example:["12260895952237462871473144"]languages arrayWhenlanguage_scopeis set toSPECIFIC, use this field to pass an array of language codes to which the size chart applies.pt-pt: Portuguese (Portugal)tr: Turkishzh-hans-cn: Simplified Chinese (Mainland China)vi: Vietnamesesv: Swedishzh-hant-tw: Traditional Chineseth: Thaiar: Arabicpl: Polishro: Romaniansk: Slovakko: Koreanlv: Latvianms: Malaypt: Portuguese (Brazil)it: Italianja: Japaneselt: Lithuaniansl: Sloveniannb: Norwegian Bokmålru: Russiannl: Dutchen: Englishid: Indonesianet: Estonianbg: Bulgarianhi: Hindics: Czeches: Spanishfr: Frenchfi: Finnishda: Danishel: Greekde: Germanhr: Croatianhu: Hungarian
Example:["EN,CN"]product_list arrayWhenapplicable_product_typeis set toSPECIFIC, use this field to pass in a list of product IDs to which the size chart applies.Maximum size: 100Example:["16064649853088531841170520"]size_chart_id string requiredThe unique ID of size chart .Example:13266288837293171311580520contentsobject[]
Size data list, to be processed sequentially from the first item, with any items beyond the first 10 being truncated.Maximum size: 10cross_table_contentobject
Cross table data that commonly used to display specific sizes suitable for different body parameters. For example, a height of 170cm and a weight of 70kg are suitable for size L.size_dataobject[] required
A list of cross table data, where the first element represents the table header. Each element in the array corresponds to a row of data in the table.Maximum size: 50row_data array requiredA list of cross table row data, where each element in the array represents data within a cell.Maximum size: 50Maximum length per string: 19Example:["XS,64"]column_title stringThe column title in a cross table that indicates the size information represented by the column data. For example,weightdenotes that the column data represents weight data.Default value:weightMaximum length:20Example:weightcolumn_unitobject
The size unit of the column's data in the cross table.convert_unit stringThe optional display unit for the size data. Customers can switch between the default unit (default_unit) and this unit to display sizes. Refer to the table in theunit_typedescription for valid values of this field. You need to set a supported unit based on the specifiedunit_type.Default value:kg.Example:kgdefault_unit stringThe default display unit for the size data. Refer to the table in theunit_typedescription for valid values of this field. You need to set a supported unit based on the specifiedunit_type.Default value:lb.Example:lbunit_type stringThe unit types supported by cross tables. Valid values are:LENGTH: lengthWEIGHT(default value): weightBULK: volume
The following table shows the specific measurement units supported by each unit type.Unit Type Unit Type Description Supported Unit Supported Unit Description LENGTH Length feet Feet LENGTH Length m Meters LENGTH Length cm Centimeters LENGTH Length mm Millimeters LENGTH Length in Inches WEIGHT Weight (Default) lb Pounds WEIGHT Weight (Default) oz Ounces WEIGHT Weight (Default) kg Kilograms WEIGHT Weight (Default) g Grams WEIGHT Weight (Default) mg Milligrams BULK Volume us_gal Gallon (US) BULK Volume uk_gal Gallon (UK) BULK Volume oz_us Fluid Ounce (US) BULK Volume oz_uk Fluid Ounce (UK) BULK Volume ml Milliliters BULK Volume l Liters Example:WEIGHTremark stringCross table remark.Maximum length:255Example:1 lb = 0.45 kg,1 feet = 30.48 cmrow_title stringThe row title in a cross table that explains the size information represented by the row data. For example,heightdenotes that the row data represents height data.Default value:heightMaximum length: 20Example:heightrow_unitobject
The size unit of the rows in the cross table.convert_unit stringThe optional display unit for the size data. Customers can switch between the default unit (default_unit) and this unit to display sizes. Refer to the table in theunit_typedescription for valid values of this field. You need to set a supported unit based on the specifiedunit_type.Default value:feet.Example:feetdefault_unit stringThe default display unit for the size data. Refer to the table in theunit_typedescription for valid values of this field. You need to set a supported unit based on the specifiedunit_type.Default value:cm.Example:cmunit_type stringThe unit types supported by cross tables. Valid values are:LENGTH: lengthWEIGHT(default value): weightBULK: volume
The following table shows the specific measurement units supported by each unit type.Unit Type Unit Type Description Supported Unit Supported Unit Description LENGTH Length feet Feet LENGTH Length m Meters LENGTH Length cm Centimeters LENGTH Length mm Millimeters LENGTH Length in Inches WEIGHT Weight (Default) lb Pounds WEIGHT Weight (Default) oz Ounces WEIGHT Weight (Default) kg Kilograms WEIGHT Weight (Default) g Grams WEIGHT Weight (Default) mg Milligrams BULK Volume us_gal Gallon (US) BULK Volume uk_gal Gallon (UK) BULK Volume oz_us Fluid Ounce (US) BULK Volume oz_uk Fluid Ounce (UK) BULK Volume ml Milliliters BULK Volume l Liters Example:LENGTHtable_contentobject
Table data that commonly used to display size data in tabular form. For example, the shoulder width for size S is 60, and the waist circumference is 55.remark stringTable remark.Maximum length: 255Example:1inch=2.54cmsize_dataobject[] required
A list of cross table data, where the first element represents the table header. Each element in the array corresponds to a row of data in the table.Maximum size: 50row_data array requiredA list of cross table data, where the first element represents the table header. Each element in the array corresponds to a row of data in the table.Maximum size: 50Example:["XS,64"]unitobject
The unit of measurement used for the size data in the table.default_unit stringThe default display unit for the size data. Refer to the table in theunit_typedescription for valid values of this field. You need to set a supported unit based on the specifiedunit_type.Default value:cm.Example:cmunit_type stringThe unit types supported by table. Valid values are:LENGTH: lengthWEIGHT(default value): weightBULK: volume
The following table shows the specific measurement units supported by each unit type.Unit Type Unit Type Description Supported Unit Supported Unit Description LENGTH Length feet Feet LENGTH Length m Meters LENGTH Length cm Centimeters LENGTH Length mm Millimeters LENGTH Length in Inches WEIGHT Weight (Default) lb Pounds WEIGHT Weight (Default) oz Ounces WEIGHT Weight (Default) kg Kilograms WEIGHT Weight (Default) g Grams WEIGHT Weight (Default) mg Milligrams BULK Volume us_gal Gallon (US) BULK Volume uk_gal Gallon (UK) BULK Volume oz_us Fluid Ounce (US) BULK Volume oz_uk Fluid Ounce (UK) BULK Volume ml Milliliters BULK Volume l Liters Example:LENGTHconvert_unit stringThe optional display unit for the size data. Customers can switch between the default unit (default_unit) and this unit to display sizes. Refer to the table in theunit_typedescription for valid values of this field. You need to set a supported unit based on the specifiedunit_type.Default value:in.Example:incountry_sizeobject
The country size data represents the names of sizes in different countries within this table.cover_attribute booleanWhether to usecountry_size_datato override the default size values.●true