Publishing an Extension Draft
Function
This API is used to publish an extension draft.
Calling Method
For details, see Calling APIs.
URI
POST /v1/{domain_id}/agent-plugin/publish-draft
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
domain_id |
Yes |
String |
Tenant ID. |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
X-Auth-Token |
Yes |
String |
User token. It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is the user token. |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
plugin_name |
Yes |
String |
Extension name. |
display_name |
Yes |
String |
Display name. |
version |
Yes |
String |
Version number. |
plugin_attribution |
Yes |
String |
Extension attribute: custom or official. |
version_attribution |
No |
String |
Version attribute: draft or formal. |
Response Parameters
Status code: 400
Parameter |
Type |
Description |
---|---|---|
error_msg |
String |
Error message. |
error_code |
String |
Error code. |
Example Requests
POST https://{endpoint}/v1/ce8df55870164338a72d7e828a966a2a/agent-plugin/publish-draft { "plugin_name" : "testteset", "display_name" : "testteset", "version" : "0.0.1", "plugin_attribution" : "custom" }
Example Responses
Status code: 200
Whether the calling is successful.
true
Status Codes
Status Code |
Description |
---|---|
200 |
Whether the calling is successful. |
400 |
Bad request |
401 |
Unauthorized |
403 |
Forbidden |
404 |
Not Found |
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