Help Center/ Data Security Center/ API Reference/ API Description/ Policy Center/ Modifying Security Protection Measures in Batches
Updated on 2026-01-13 GMT+08:00

Modifying Security Protection Measures in Batches

Function

This API is used to update security protection measures corresponding to data protection levels in batches.

Calling Method

For details, see Calling APIs.

URI

POST /v1/{project_id}/protect-measures/batch-update

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Unique project ID.

Request Parameters

Table 2 Request body parameters

Parameter

Mandatory

Type

Description

[items]

Yes

Array of MeasureDetail objects

Specific measure requirements.

Table 3 MeasureDetail

Parameter

Mandatory

Type

Description

create_time

No

Long

Creation time.

description

No

String

Description.

id

No

Long

ID

is_deleted

No

Boolean

Deletion flag.

life_cycle

No

String

Lifecycle type.

measure_type

No

String

Measure type.

name

No

String

Name.

update_time

No

Long

Update time.

Response Parameters

Status code: 200

Table 4 Response body parameters

Parameter

Type

Description

id

String

ID

msg

String

Message.

status

String

Response code.

Status code: 201

Resource being created.

Example Requests

POST /v1/{project_id}/protect-measures/batch-update

[ {
  "name" : "string",
  "description" : "string",
  "life_cycle" : "string",
  "measure_type" : "string",
  "id" : 0,
  "update_time" : 0,
  "create_time" : 0,
  "is_deleted" : false
} ]

Example Responses

None

Status Codes

Status Code

Description

200

Updated.

201

Resource being created.

401

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

403

Unauthorized to access the resource.

404

The specified project does not exist.

Error Codes

See Error Codes.