Updated on 2025-09-08 GMT+08:00

Updating Endpoint Permissions

Function

This API is used to update endpoint permissions.

Calling Method

For details, see Calling APIs.

URI

POST /v1/endpoint/{endpointUuid}/permission

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

endpointUuid

Yes

String

Definition:

Endpoint UUID.

Constraints:

N/A

Value range:

N/A

Default value:

N/A

Request Parameters

Table 2 Request body parameters

Parameter

Mandatory

Type

Description

role_id

No

String

Definition:

Role ID.

Constraints:

N/A

Value range:

N/A

Default value:

N/A

permission_type

No

String

Definition:

Permission type.

Constraints:

N/A

Value range:

N/A

Default value:

N/A

value

No

Boolean

Definition:

Whether the permission is granted.

Constraints:

N/A

Value range:

  • true: The permission is granted.

  • false: The permission is not granted.

Default value:

N/A

Response Parameters

Status code: 200

Table 3 Response body parameters

Parameter

Type

Description

error

ErrorInfo object

Definition:

Error message.

Value range:

N/A

result

Object

Definition:

Error result.

Value range:

N/A

status

String

Definition:

Status value.

Value range:

N/A

Table 4 ErrorInfo

Parameter

Type

Description

code

String

Definition:

Error code.

Value range:

N/A

message

String

Definition:

Error message.

Value range:

N/A

Example Requests

None

Example Responses

None

Status Codes

Status Code

Description

200

OK

Error Codes

See Error Codes.