ImportVocabulary

Updated at:

Imports a vocabulary.

Try it now

You can call this API directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After a successful call, OpenAPI Explorer automatically generates SDK code examples.

RAM authorization

The following table lists the authorization information of this API. You can use the Action element of a RAM policy statement to grant a RAM user or RAM role the permission to call this API. Details:

  • Operation: the specific permission point.

  • Access level: the access level of each operation, which can be Write, Read, or List.

  • Resource type: the resource types supported for authorization in this operation. Details:

    • Required resource types are marked with a preceding *.
    • For operations that do not support resource-level authorization, All resources is used.
  • Condition key: the condition keys defined by the cloud service itself.

  • Related operation: other permissions required to successfully perform the operation. The caller must have the permissions of the related operations at the same time for the operation to succeed.

Operation

Access level

Resource type

Condition key

Related operation

bailianvoicebot:ImportVocabulary

create

*All resources

*

NoneNone

Request syntax

POST  HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

BusinessUnitId

string

No

The ID of the Bailian business unit.

llm-zop7ukgtksltamo4

FileKey

string

No

The path of the uploaded file.

vocabulary/hot-word-import-unit-test.zip

Response elements

Element

Type

Description

Example

object

Schema of Response

RequestId

string

The request ID.

D771A1B6-3D5F-174A-BEE1-98CE1000D337

HttpStatusCode

integer

The HTTP status code.

200

Message

string

The error message.

Instance llm-rj6aqmctjcit4acy does not exist.

Code

string

The internal error code.

OK

Data

array

The list of vocabulary IDs.

string

The vocabulary ID.

a395011f-a247-400f-bc69-28796749fd52

Params

array

The list of dynamic error parameters.

string

A dynamic error parameter.

llm-xdne77rxe14ziszr

Examples

Success response

JSON format

{
  "RequestId": "D771A1B6-3D5F-174A-BEE1-98CE1000D337",
  "HttpStatusCode": 200,
  "Message": "Instance llm-rj6aqmctjcit4acy does not exist.",
  "Code": "OK",
  "Data": [
    "a395011f-a247-400f-bc69-28796749fd52\n"
  ],
  "Params": [
    "llm-xdne77rxe14ziszr"
  ]
}

Error codes

Visit the Error Center for more error codes.

Release notes

See Release Notes for a complete list.