Obtain the language list.
Function
Obtain the language list.
URI
GET /v1/applications/uni-search/languages
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
X-Auth-Token |
Yes |
String |
Definition: Token used for API authentication. For details about how to obtain the token, see Obtaining an IAM User Token. Constraints: N/A Value range: N/A Default value: N/A |
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
data |
Array of LanguageInfo objects |
Definition: List of supported languages. Value range: N/A |
Parameter |
Type |
Description |
---|---|---|
id |
String |
Definition: Language ID. Value range: N/A |
locale |
String |
Definition: Language name. Value range: N/A |
language |
String |
Definition: Language name. Value range:
|
Status code: 400
Parameter |
Type |
Description |
---|---|---|
error_code |
String |
Definition: Value range: N/A |
error_msg |
String |
Definition: Error message. Value range: N/A |
Status code: 500
Parameter |
Type |
Description |
---|---|---|
error_code |
String |
Definition: Value range: N/A |
error_msg |
String |
Definition: Error message. Value range: N/A |
Example Requests
Obtaining a Prompt by prompt_id
/v1/applications/uni-search/languages
Example Responses
Status code: 200
Response body for modifying a prompt.
{ "data" : [ { "id" : "zh", "locale" : "en", "language" : "CHINESE" }, { "id" : "en", "locale" : "en", "language" : "ENGLISH" }, { "id" : "ar", "locale" : "en", "language" : "ARABIC" }, { "id" : "th", "locale" : "en", "language" : "THAI" }, { "id" : "es", "locale" : "en", "language" : "SPANISH" }, { "id" : "pt", "locale" : "en", "language" : "PORTUGUESE" } ] }
Status Codes
Status Code |
Description |
---|---|
200 |
Response body for modifying a prompt. |
400 |
Incorrect request body parameter. |
500 |
Internal error. |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot