stable本次发布有变化全部展示
来自 TikTok Shop 官方资料快照 ·
- 当前资料结构化阅读页
- 固定快照已留存,可追溯
- 官方原文可核对
资料正文
§1 Path: /product/202608/size_charts/edit
#§2 Method: [POST]
#§3 Function Description
Edit an existing seller-owned size chart. Omit name to keep the current name.
§4 Common Parameters
For common parameters, refer to How to call TikTok Shop APIs - Common Parameters
| Properties | Location | Type | Require | Sample | Properties description |
|---|---|---|---|---|---|
| content-type | header | string | Y | application/json | Allowed type: application/json |
§5 Request Query Parameters
| Properties | Type | Require | Sample | Properties description |
|---|---|---|---|---|
| app_key | string | Y | 38abcd | Every single app will have a unique key. Please use the specific key assigned to your app. |
| sign | string | Y | 5361235029d141222525e303d742f9e38aea052d10896d3197ab9d6233730b8c | Signature generated by gen algorithm. When you send API requests to TTS, you must sign them so that TTS can identify the senders. |
| timestamp | int | Y | 1623812664 | Unix timestamp GMT (UTC+00:00). This timestamp is used across all API requests. Developers can use this convert to local time. |
§6 Request Body Parameters
| Properties | Type | Require | Sample | Properties description |
|---|---|---|---|---|
| size_chart_id | string | Y | 12345 | The ID of the seller-owned reusable size chart template to update. |
| template_name | string | N | Women's Tops | The new name of the size chart template. If omitted, the current name remains unchanged. |
| size_chart_data | object | Y | Complete replacement structured table. | |
| ^table | object | Y | Structured table containing headers and named rows. | |
| ^^headers | []object | Y | Column definitions. | |
| ^^^name | string | Y | Size | User-visible header name. It may be a seller-defined name, for example Bust (cm). |
| ^^^id | string | N | size_chart_size_system_size | Standard size-system ID or measurement key returned by Get Category Rules; omit for custom columns. |
| ^^rows | []object | Y | Named data rows. | |
| ^^^cells | []object | Y | Cells aligned by index with table.headers. | |
| ^^^^value | string | Y | S | Default displayed cell value. |
| ^size_types | []string | N | ["size_chart_size_type_regular"] | Possible values include: size_chart_common_size_type: Common; size_chart_size_type_regular: Regular; size_chart_size_type_juniors: Juniors; size_chart_size_type_plus: Plus; size_chart_size_type_big&tall: Big & Tall; size_chart_size_type_petite: Petite. Available values depend on the category. |
| ^description | string | N | Women tops size chart | Size chart description. |
| ^is_one_size | bool | N | false | Whether this is a one-size chart. |
| ^measurement_type | string | Y | BODY_MEASUREMENTS | Possible values: GENERIC_MEASUREMENTS: generic measurements; BODY_MEASUREMENTS: shopper body measurements; PRODUCT_MEASUREMENTS: finished-product measurements. |
| ^unit_system | string | Y | METRIC | Possible values: METRIC: metric units; IMPERIAL: imperial units. |
§7 Request Sample
Query
https://open-api.tiktokglobalshop.com/product/202608/size_charts/edit?app_key=123abc&sign=5361235029d141222525e303d742f9e38aea052d10896d3197ab9d6233730b8c×tamp=1625484268
Body
{"size_chart_id":"12345","template_name":"Women's Tops","size_chart_data":{"table":{"headers":[{"name":"Size","id":"size_chart_size_system_size"}],"rows":[{"cells":[{"value":"S"}]}]},"size_types":["size_chart_size_type_regular"],"description":"Women tops size chart","is_one_size":false,"measurement_type":"BODY_MEASUREMENTS","unit_system":"METRIC"}}
§8 Response Parameters
| Properties | Type | Sample | Properties description |
|---|---|---|---|
| code | int | 0 | The success or failure status code returned in API response. |
| message | string | Success | The success or failure messages returned in API response. Reasons of failure will be described in the message. |
| request_id | string | 202203070749000101890810281E8C70B7 | Request log |
| data | object | Specific return information | |
| ^code | int | 0 | The success or failure status code returned in API response. |
| ^message | string | Success | The success or failure messages returned in API response. Reasons of failure will be described in the message. |
| ^request_id | string | 202608311234567890 | Request log |
| ^data | object | Specific return information | |
| ^^size_chart_id | string | 12345 | Updated size chart ID. This echoes the validated request identifier required by the PRD workflow. |
§9 Response Sample
{"code":0,"data":{"code":0,"message":"Success","request_id":"202608311234567890","data":{"size_chart_id":"12345"}},"message":"Success","request_id":"202203070749000101890810281E8C70B7"}
§10 Error Code
For common error codes, refer to How to call TikTok Shop APIs - Common Error Code
| Code | Message |
|---|---|
| 12052121 | Size chart is invalid |
| 12052122 | Size chart description contain sensitive word |
| 12052123 | Size chart header contain sensitive word |
| 12052124 | Size chart content contain sensitive word |
| 12052125 | Size chart struct error |
| 12052127 | Save size chart template has duplicate name |
| 12052128 | Size chart not found |
| 12052267 | Param is invalid |
| 12052331 | sizeChart mandatory option need fill |
| 12052700 | The seller is inactive. |
| 36009003 | Internal error. Please try again. If the issue persists after multiple attempts, please contact platform support. |
变化记录
相对上一发布版本,本文内容有变化。
本版没有改过这篇(或它是新增页),没有可比的上一版。
