Updated on 2026-01-13 GMT+08:00

Importing Sensitivity Levels in Batches

Function

This API is used to import sensitivity level in batches.

Calling Method

For details, see Calling APIs.

URI

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

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

template_id

Yes

String

Template ID.

project_id

Yes

String

Project ID, which is used to identify a specific project.

Request Parameters

Table 2 FormData parameters

Parameter

Mandatory

Type

Description

template_type

Yes

String

Template type.

ti_file

Yes

File

Files imported in batches.

Response Parameters

Status code: 200

Table 3 Response body parameters

Parameter

Type

Description

status

String

Rule status.

success_msg

String

Success message.

error_response

error_response object

Error message.

Table 4 error_response

Parameter

Type

Description

total

Integer

Total number.

error_messages

Array of error_messages objects

Error description.

Table 5 error_messages

Parameter

Type

Description

line_number

Integer

Line number.

message

String

Description.

Status code: 204

Deleted. No content returned.

Example Requests

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

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

Example Responses

None

Status Codes

Status Code

Description

200

Request succeeded. The deletion result is returned.

204

Deleted. No content returned.

401

Unauthorized. The user is not logged in or the token is invalid.

403

Unauthorized to access the resource.

Error Codes

See Error Codes.