Updating a Picklist Instance
Function
This API is used to update a picklist by ID.
URI
PUT Huawei Cloud Astro Zero domain name/u-route/baas/metadata/v1.0/Picklist/{Picklist _id}
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
Picklist _id |
Yes |
String |
Explanation Picklist instance ID, which can be queried by invoking the API of Querying Picklist Instances by Condition (id in the response message). Constraints None Value None Default value None |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
masterLabel |
Yes |
String |
Explanation Label of the picklist instance. Constraints None Value 1–64 characters Default value None |
description |
No |
String |
Explanation Description of the Picklist instance. Constraints None Value 1–255 characters Default value None |
Response Parameters
Parameter |
Type |
Description |
---|---|---|
resCode |
String |
Explanation Return code. Value If the request is successful, 0 is returned. For details about other error codes, see Error Codes. |
resMsg |
String |
Explanation Message returned. Value If the request is successful, "Success" is returned. In other cases, an error message is returned. |
result |
String |
Explanation If the request is successful, 1 is returned. Value None |
Example Request
PUT https://Huawei Cloud Astro Zero domain name/u-route/baas/metadata/v1.0/Picklist/000y000000aM92DCu6hU { "masterLabel": "string", "description": "string" }
Example Response
{ "resCode": "0", "resMsg": "Success", "result": "1" }
Status Code
See Status Codes.
Error Code
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