All Products
Search
Document Center

:PunishFile

Last Updated:Apr 09, 2026

Penalty information file.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request syntax

POST /v2/csi/business/punish_file HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

domain_id

string

No

bj2

body

object

No

The request body.

drive_id

string

Yes

The ID of the drive that contains the file.

1

file_id

string

Yes

The ID of the file.

2498DZ2

action_code

string

Yes

The penalty action. Valid values:pds_file_meta_frozen: Freezes the file.pds_file_meta_share_forbidden: Disables sharing for the file.pds_file_meta_remove_punish: Removes the penalty from the file.pds_file_frozen: Freezes the file at the content level.pds_fileshare_forbidden: Disables sharing for the file at the content level.pds_file_remove_punish: Removes the penalty from the file at the content level.A content-level penalty affects all files that have the same content. A non-content-level penalty affects only the specified file.

Valid values:

  • pds_file_remove_punish :

    pds_file_remove_punish

  • pds_fileshare_forbidden :

    pds_fileshare_forbidden

  • pds_file_frozen :

    pds_file_frozen

  • pds_file_meta_frozen :

    pds_file_meta_frozen

  • pds_file_meta_remove_punish :

    pds_file_meta_remove_punish

  • pds_file_meta_share_forbidden :

    pds_file_meta_share_forbidden

pds_file_meta_frozen

punish_reason

string

No

The reason for the penalty.

illegal

Response elements

Element

Type

Description

Example

None defined.

Examples

Success response

JSON format

{}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.