文档首页/ 数据安全中心 DSC/ API参考/ API说明/ 敏感数据识别/ 批量导入分类信息 - BatchImportClassifications
更新时间:2026-01-13 GMT+08:00

批量导入分类信息 - BatchImportClassifications

功能介绍

批量导入分类信息

调用方法

请参见如何调用API

URI

POST /v1/{project_id}/scan-templates/{template_id}/classifications/batch-import

表1 路径参数

参数

是否必选

参数类型

描述

template_id

String

模板id。

project_id

String

项目ID,用于标识具体的项目。

请求参数

表2 FormData参数

参数

是否必选

参数类型

描述

template_type

String

模板类型。

ti_file

File

批量导入的文件

响应参数

状态码:200

表3 响应Body参数

参数

参数类型

描述

status

String

规则状态。

success_msg

String

成功信息。

error_response

error_response object

错误信息。

表4 error_response

参数

参数类型

描述

total

Integer

总数。

error_messages

Array of error_messages objects

错误描述

表5 error_messages

参数

参数类型

描述

line_number

Integer

行号

message

String

描述

状态码:204

删除成功,无内容返回。

请求示例

POST /v1/{project_id}/scan-templates/{template_id}/classifications/batch-import

{
  "template_id" : "string",
  "template_type" : "string",
  "ti_file" : "file"
}

响应示例

状态码

状态码

描述

200

请求成功,返回删除结果。

204

删除成功,无内容返回。

401

未授权,用户未登录或令牌无效。

403

无权限访问该资源。

错误码

请参见错误码