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 | Definition: Tenant ID, that is, domain ID of a user. Constraints: N/A Range: The value consists of 32 characters, including only digits and letters. Default value: N/A |
| templateId | Yes | String | Parameter description: Template ID. Constraints: None. Value range: 32 characters, including only digits and letters. Default value: None. |
Request Parameters
None
Response Parameters
Status code: 200
| Parameter | Type | Description |
|---|---|---|
| templateId | String | Definition: Template ID. Value range: N/A Default value: N/A |
Example Requests
POST https://{endpoint}/v5/e2e18230a85d4d6ab0b56cb6d2246c18/api/pipeline-templates/d6e65b15f6d94fda85c6644e8136a1f7/favorite?flag=true Example Responses
Status code: 200
{
"templateId" : "d6e65b15f6d94fda85c6644e8136a1f7"
} Status Codes
| Status Code | Description |
|---|---|
| 200 | Added to favorites. |
Error Codes
See Error Codes.
What is your overall rating for this page?
Thank 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