需要 write_translation 权限点。
更多权限点使用信息,请参考:
PUT https://{handle}.myshopline.com/admin/openapi/v20250601/ugc/resource.json
handle :店铺的唯一标识符,值为店铺域名的前缀。例如,域名为 open001.myshopline.com 的店铺,其 handleopen001
更新店铺下存储的UGC语料。
请求头
  • Content-Type required
    字段值固定为application/json; charset=utf-8
  • Authorization string required
    资源的访问令牌。请参考 应用授权 获取访问令牌,然后将获取到的访问令牌以 Bearer 格式传入
    Example:
    Bearer eyJhbGciOiJIUzUxMiJ9.eyJhcHBLZXkiOiJmMjM3OWQyMTYyOGMzM2QxMWRiMWZkYjY5N2EzZjdjMjZlNGMwYTA5Iiwic2VsbGVySWQiOiIyMDAwMjM0ODgwIiwic3RvcmVJZCI6IjE2NzIzNjk3Mjk2MDYiLCJ2ZXJzaW9uIjoiVjIiLCJkb21haW4iOiJodHRwczovL3NsLW9wZW4tc2cubXlzaG9wbGluZS5jb20iLCJ0aW1lc3RhbXAiOjE2NzUzMTk0OTI0MzksImlzcyI6Inlzb3VsIiwiZXhwIjoxNzY5OTI3NDkyfQ.UwQzomM2veGCUaOZ0paUxq5dpc7DXuhHYFvsQ_uIAKduzWcb_j2E4q_36El83sp145D4cKbpcE5KCeeIz-JNQw
请求体
  • resource_listobject[] required
    多语言资源
  • content_listobject[] required
    语料内容
  • resource_content string required
    资源多语言内容
    Example: 语料标题内容
  • resource_field string required
    业务多语言资源字段
    Example: title
  • locale string required
    业务多语言值
    Example: en
  • market string
    业务市场值
    Example: 2805652120189036673434
  • resource_id string required
    业务多语言资源唯一主键
    Example: 1636453548928
  • resource_type string required
    业务多语言资源类型
    Example: PRODUCT
响应
更多状态码信息请参考 HTTP 状态码

响应头
  • traceId
    traceId
响应体
  • dataobject
    更新失败的语料资源
  • fail_listobject[]
    更新失败列表
  • fail_cause string
    更新失败原因
    Example: VERIFY_RESOURCE_FAIL
  • locale string
    业务多语言值
    Example: en
  • market string
    业务市场值
    Example: 2805652120189036673434
  • resource_content string
    资源多语言内容
    Example: 语料标题内容
  • resource_field string
    业务多语言资源字段
    Example: title
  • resource_id string
    业务多语言资源唯一主键
    Example: 1636453548928
  • resource_type string
    业务多语言资源类型
    Example: PRODUCT
  • resource_listobject[]
    更新的资源集合列表
  • locale string
    业务多语言值
    Example: en
  • market string
    业务市场值
    Example: 2805652120189036673434
  • outdated boolean
    语料是否过时
  • resource_content string
    资源多语言内容
    Example: 语料标题内容
  • resource_field string
    业务多语言资源字段
    Example: title
  • resource_id string
    业务多语言资源唯一主键
    Example: 1636453548928
  • resource_type string
    业务多语言资源类型
    Example: PRODUCT
  • updated_at string
    语料更新时间
    Example: 2023-09-07T15:50:00Z
API Explorer
https://openapiceshidianpu.myshopline.com/admin/openapi/v20250601

ParamOptions

header required

Body

required
{
  "resource_list": [
    {
      "content_list": [
        {
          "resource_content": "语料标题内容",
          "resource_field": "title"
        }
      ],
      "locale": "en",
      "market": "2805652120189036673434",
      "resource_id": "1636453548928",
      "resource_type": "PRODUCT"
    }
  ]
}

Language

curl --request PUT \
--url https://openapiceshidianpu.myshopline.com/admin/openapi/v20250601/ugc/resource.json \
--header 'Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJhcHBLZXkiOiJmMjM3OWQyMTYyOGMzM2QxMWRiMWZkYjY5N2EzZjdjMjZlNGMwYTA5Iiwic2VsbGVySWQiOiIyMDAwMjM0ODgwIiwic3RvcmVJZCI6IjE2NzIzNjk3Mjk2MDYiLCJ2ZXJzaW9uIjoiVjIiLCJkb21haW4iOiJodHRwczovL3NsLW9wZW4tc2cubXlzaG9wbGluZS5jb20iLCJ0aW1lc3RhbXAiOjE2NzUzMTk0OTI0MzksImlzcyI6Inlzb3VsIiwiZXhwIjoxNzY5OTI3NDkyfQ.UwQzomM2veGCUaOZ0paUxq5dpc7DXuhHYFvsQ_uIAKduzWcb_j2E4q_36El83sp145D4cKbpcE5KCeeIz-JNQw' \
--header 'Content-Type: application/json; charset=utf-8' \
--header 'accept: application/json' \
--data '
{
"resource_list": [
{
"content_list": [
{
"resource_content": "语料标题内容",
"resource_field": "title"
}
],
"locale": "en",
"market": "2805652120189036673434",
"resource_id": "1636453548928",
"resource_type": "PRODUCT"
}
]
}
'

Error loading component.

Error loading component.