创建人体库
更新时间:2022-11-04
接口描述
本接口用于创建EVS人体库
请求结构
POST /v1/database/directory HTTP/1.1
x-bce-date: 2020-03-25T09:28:13Z
host: evs.bj.baidubce.com
content-type: application/json
authorization: bce-auth-v1/e8e4a9ced6794355a9a1b8a20b58d37b/2020-03-25T09:28:13Z/1800/content-type;host;x-date/4a1692dc4bab84f5801f79ea0c1fece3601cf73ecd94409d2a94b3942b971715
{
"name": name,
"description": description,
"type": type
}
请求头域
除公共头域外,无其它特殊头域。
请求参数
参数名称 | 类型 | 是否必须 | 参数位置 | 描述 |
---|---|---|---|---|
name | String | 是 | RequestBody参数 | 人体库名称,最大长度64个字符 |
description | String | 否 | RequestBody参数 | 人体库描述,最大长度128个字符 |
type | String | 是 | RequestBody参数 | 创建类型,人体库为HUMAN |
响应头域
除公共头域外,无其它特殊头域。
响应参数
参数名称 | 类型 | 描述 |
---|---|---|
databaseId | String | 人体库ID,20位随机数 |
请求示例
POST /v1/database/directory HTTP/1.1
x-bce-date: 2020-03-25T09:28:13Z
host: evs.bj.baidubce.com
content-type: application/json
authorization: bce-auth-v1/e8e4a9ced6794355a9a1b8a20b58d37b/2020-03-25T09:28:13Z/1800/content-type;host;x-date/4a1692dc4bab84f5801f79ea0c1fece3601cf73ecd94409d2a94b3942b971715
{
"name": "evs_human_database",
"description": "evs_human_database_description",
"type": "HUMAN"
}
响应示例
HTTP/1.1 200 OK
Transfer-Encoding: chunked
x-bce-request-id: 012b9747-f13a-4a2c-a488-02b221844dca
Cache-Control: no-cache
Server: BWS
Date: Tue, 24 Mar 202 013:34:07 GMT
Content-Type: application/json;charset=UTF-8
{
"databaseId": "ddb-maqr9s2ft91x7gsm"
}