人脸数据管理
- Base URL:
https://stardust.ticos.cn - 认证:
Authorization: Bearer <token>
POST /faces:新增人脸GET /faces:获取人脸列表POST /faces/{face_id}:按face_id新增/覆盖GET /faces/{face_id}:获取人脸详情PUT /faces/{face_id}:更新人脸信息DELETE /faces/{face_id}:删除人脸
face_id:人脸唯一标识name:名称image_base64:Base64 图像(如data:image/jpeg;base64,...)
示例:新增人脸
Section titled “示例:新增人脸”curl --location 'https://stardust.ticos.cn/faces' \--header 'Content-Type: application/json' \--header 'Authorization: Bearer <API_KEY>' \--data '{ "face_id": "1", "name": "william", "image_base64": "data:image/jpeg;base64,XXXXXX"}'示例:查询列表
Section titled “示例:查询列表”curl --location 'https://stardust.ticos.cn/faces' \--header 'Authorization: Bearer <API_KEY>'示例:更新名称
Section titled “示例:更新名称”curl --location --request PUT 'https://stardust.ticos.cn/faces/1' \--header 'Content-Type: application/json' \--header 'Authorization: Bearer <API_KEY>' \--data '{"name":"huyiyang"}'curl --location --request DELETE 'https://stardust.ticos.cn/faces/1' \--header 'Authorization: Bearer <API_KEY>'200 OK:成功400 Bad Request:参数错误或 JSON 格式错误401 Unauthorized:鉴权失败