版本:202201
更新元字段定义
PUT/openapi/2022-01/metafield_definition/:id
通过元字段定义 ID 更新现有元字段定义的详细信息。
请求
Path参数
id string必填
待更新的元字段定义 ID。
- application/json
- 请求体
- 示例
请求体
descriptionstring
Description of metafield definition
namestring
Name of metafield definition
{
"description": "string",
"name": "string"
}
响应
- 200
- 404
- 422
200
- application/json
- 数据结构
- 示例
- Result
数据结构
idstring
示例:
374034306256875562keystring
示例:
key2namestring
示例:
longnamespacestring
示例:
testowner_resourcestring
示例:
producttypestring
示例:
booleandescriptionstring
示例:
desc2create_atstring
示例:
2024-04-28T03:18:59Zupdated_atstring
示例:
2024-04-28T03:42:42Z{
"id": "374034306256875562",
"key": "key2",
"name": "long",
"namespace": "test",
"owner_resource": "product",
"type": "boolean",
"description": "desc2",
"create_at": "2024-04-28T03:18:59Z",
"updated_at": "2024-04-28T03:42:42Z"
}
{
"id": "374034306256875562",
"key": "key2",
"name": "long",
"namespace": "test",
"owner_resource": "product",
"type": "boolean",
"description": "desc2",
"create_at": "2024-04-28T03:18:59Z",
"updated_at": "2024-04-28T03:42:42Z"
}
404
- application/json
- 数据结构
- 示例
- Result
数据结构
errorsstring[]
{
"errors": [
"No metafield definition found"
]
}
{
"errors": [
"No metafield definition found"
]
}
422
- application/json
- 数据结构
- 示例
- Result
数据结构
errorsstring[]
{
"errors": [
""
]
}
{
"errors": [
""
]
}