DeleteKbMember - Remove knowledge base members

更新时间:
复制 MD 格式

Removes one or more members from a Tongyi Lingma knowledge base.

Supported editions

Enterprise Dedicated Edition, Enterprise Standard Edition

Service endpoints

Get the service endpoint and replace {domain} in the API request syntax with your endpoint .

Authorization

Product

Resource

Required permission

Tongyi Lingma

knowledge base member

Read/Write

Request syntax

DELETE https://{domain}/oapi/v1/lingma/organizations/{organizationId}/knowledgeBases/{kbId}/members

Request

Enterprise Standard Edition

Remove knowledge base members

curl -X 'DELETE' \
  'https://openapi-rdc.aliyuncs.com/oapi/v1/lingma/organizations/6826e1d0516a9f85a08c****/knowledgeBases/b15aef8442c0fc45492b****/members' \
  -H 'Content-Type: application/json' \
  -H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484' \
  --data '
    {
    "members": [
        {
            "userId": "672aca1cbecc937b9f51****"
        }
    ]
}'

Enterprise Dedicated Edition

Remove knowledge base members

curl -X 'DELETE' \
  'https://test-domain-***.rdc.aliyuncs.com/oapi/v1/lingma/organizations/6826e1d0516a9f85a08c****/knowledgeBases/b15aef8442c0fc45492b****/members' \
  -H 'Content-Type: application/json' \
  -H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484' \
  --data '
    {
    "members": [
        {
            "userId": "672aca1cbecc937b9f51****"
        }
    ]
}'

Request headers

x-yunxiao-token string (Required)

Your personal access token. For more information about how to obtain a token, see Personal access tokens.

Example: pt-0fh3****0fbG_35af****0484

Request parameters

organizationId string (Required)

The organization ID. You can go to the Organization Management console's Basic Information page to obtain the organization ID.

kbId string (Required)

The ID of the knowledge base. To get the ID, see List knowledge bases.

members array (Required)

A list of members to remove.

Properties

userId string (Required)

The ID of the member. To get the ID, see List knowledge base members.

Response parameters

Response example

{
    "success": true
}

success boolean

Returns true if the members were successfully removed.

Error codes

For more information, see Error codes.