Adding a Pipeline Template to Favorites
Function
This API is used to add a pipeline template to favorites.
Calling Method
For details, see Calling APIs.
URI
POST /v5/{tenant_id}/api/pipeline-templates/{templateId}/favorite
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
tenant_id |
Yes |
String |
Parameter description: Tenant ID. Constraints: None. Value range: 32 characters, including only digits and letters. Default value: None. |
templateId |
Yes |
String |
Parameter description: Template ID. Constraints: None. Value range: 32 characters, including only digits and letters. Default value: None. |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
flag |
Yes |
Boolean |
Whether to favorite. |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
body |
Yes |
Object |
Request body. |
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
templateId |
String |
Template ID. |
Example Requests
POST https://(endpoint)/v5/e2e18230a85d4d6ab0b56cb6d2246c18/api/pipeline-templates/d6e65b15f6d94fda85c6644e8136a1f7/favorite?flag=true =66d40ba4e3da4505aaaf7e9de9860b6e { }
Example Responses
Status code: 200
Response body.
{ "templateId" : "d6e65b15f6d94fda85c6644e8136a1f7" }
Status Codes
Status Code |
Description |
---|---|
200 |
Response body. |
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