Creating a Pipeline Tag
Function
This API is used to create a pipeline tag.
Calling Method
For details, see Calling APIs.
URI
POST /v5/{project_id}/api/pipeline-tag/create
| 
         Parameter  | 
       
         Mandatory  | 
       
         Type  | 
       
         Description  | 
      
|---|---|---|---|
| 
         project_id  | 
       
         Yes  | 
       
         String  | 
       
         Definition: Project ID. For details, see Obtaining a Project ID. Constraints: N/A Value range: The value consists of 32 characters, including digits and letters. Default value: N/A  | 
      
Request Parameters
| 
         Parameter  | 
       
         Mandatory  | 
       
         Type  | 
       
         Description  | 
      
|---|---|---|---|
| 
         name  | 
       
         Yes  | 
       
         String  | 
       
         Tag name.  | 
      
| 
         color  | 
       
         Yes  | 
       
         String  | 
       
         Tag color.  | 
      
Response Parameters
Status code: 200
| 
         Parameter  | 
       
         Type  | 
       
         Description  | 
      
|---|---|---|
| 
         success  | 
       
         Boolean  | 
       
         Definition: Whether the operation is successful. Value range: 
  | 
      
Example Requests
POST https://{endpoint}}/v5/db8d07265e24426598b3eb03a7818972/api/pipeline-tag/create
{
  "name" : "2323",
  "color" : "#0b81f6"
}
  Example Responses
Status code: 200
Response body.
{
  "success" : true
}
  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