Help Center/ KooDrive/ API Reference/ API/ Permissions Templates/ Modifying the Status of Permissions Templates
Updated on 2025-03-14 GMT+08:00

Modifying the Status of Permissions Templates

Function

Modify the status of permissions templates in batches.

URI

POST /koodrive/ose/v1/permission/template/status/modify

Request Parameters

Table 1 Request header parameters

Parameter

Mandatory

Type

Description

Authorization

Yes

String

The format is Bearer {app_access_token}. The application-level token needs to be passed for calling by an application server. The token is obtained by calling an API using clientid and clientSecret obtained during application creation.

X-User-Id

Yes

String

User ID, which is used for app authentication.

X-Date

Yes

String

Date, which is used for app authentication.

Host

No

String

Address, which is used for app authentication.

Table 2 Request body parameters

Parameter

Mandatory

Type

Description

id

Yes

Long

Unique ID of a permissions template.

status

Yes

Integer

Permissions template status. 0: disabled; 1: enabled.

Response Parameters

Status code: 200

Table 3 Response body parameters

Parameter

Type

Description

code

String

Error code.

msg

String

Error message.

Example Requests

/koodrive/ose/v1/permission/template/status/modify

{
  "id" : "15906*********52928",
  "status" : 1
}

Example Responses

Status code: 200

Response body for modifying the status of permissions templates.

{
  "code" : 0,
  "msg" : "Successful."
}

Status Codes

Status Code

Description

200

Response body for modifying the status of permissions templates.