版本:202201
查询元字段定义详情
GET/openapi/2022-01/metafield_definition
通过的元字段定义 ID 获取指定的元字段定义。
请求
Query参数
id string必填
待查询的元字段定义 ID。
响应
- 200
- 404
- 422
200
- application/json
- 数据结构
- 示例
- Result
数据结构
idstring
示例:
374034306256875562keystring
示例:
key2namestring
示例:
Bignamespacestring
示例:
testowner_resourcestring
示例:
producttypestring
示例:
booleandescriptionstring
示例:
booleancreate_atstring
示例:
2024-04-28T03:18:59Zupdated_atstring
示例:
2024-04-28T03:18:59Z{
"id": "374034306256875562",
"key": "key2",
"name": "Big",
"namespace": "test",
"owner_resource": "product",
"type": "boolean",
"description": "boolean",
"create_at": "2024-04-28T03:18:59Z",
"updated_at": "2024-04-28T03:18:59Z"
}
{
"id": "374034306256875562",
"key": "key2",
"name": "Big",
"namespace": "test",
"owner_resource": "product",
"type": "boolean",
"description": "boolean",
"create_at": "2024-04-28T03:18:59Z",
"updated_at": "2024-04-28T03:18:59Z"
}
404
- application/json
- 数据结构
- 示例
- Result
数据结构
errorsstring[]
{
"errors": [
"Metafield definition namespace and key exist"
]
}
{
"errors": [
"Metafield definition namespace and key exist"
]
}
422
- application/json
- 数据结构
- 示例
- Result
数据结构
errorsstring[]
{
"errors": [
"Id is required"
]
}
{
"errors": [
"Id is required"
]
}