CreateDataAgentKnowledgeBase

Updated at:

Creates a DataAgent knowledge base. The knowledge base creator has read and write permissions. Other workspace members have permission to use it.

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  HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

DMSUnit

string

No

The current DMS unit.

cn-hangzhou

WorkspaceId

string

Yes

The workspace ID.

8i5tw7omgaax*********n909jid

Name

string

Yes

The name of the knowledge base.

KnowledgeBaseTest

Description

string

No

The description of the knowledge base.

KnowledgeBaseTest

FromKbUuid

string

No

The ID of the source industry knowledge base.

kb-HZ-ra99********ss0xp1bku

Response elements

Element

Type

Description

Example

object

Schema of Response

RequestId

string

The ID of the request.

67E910F2-4B62-5B0C-ACA3-7547695C****

Success

boolean

Indicates whether the request succeeded. Valid values:

  • true: The request succeeded.

  • false: The request failed.

true

ErrorCode

string

The error code returned when the request fails.

InvalidTid

ErrorMessage

string

The error message returned when the request fails.

Specified parameter Tid is not valid.

Data

object

The data returned by the request.

KbUuid

string

The knowledge base ID.

kb-HZ-ra99akg0t*********1bku

Examples

Success response

JSON format

{
  "RequestId": "67E910F2-4B62-5B0C-ACA3-7547695C****",
  "Success": true,
  "ErrorCode": "InvalidTid",
  "ErrorMessage": "Specified parameter Tid is not valid.",
  "Data": {
    "KbUuid": "kb-HZ-ra99akg0t*********1bku"
  }
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.