Deletes a baseline based on its ID. You can delete a baseline only if the nodes in the baseline does not have ancestor nodes. You can call the UpdateBaseline operation to delete the relationships between the nodes and their ancestor nodes.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
BaselineId | long | Yes | The baseline ID. You can call the ListBaselines operation to query the ID. | 1234 |
ProjectId | long | Yes | The ID of the workspace to which the baseline belongs. You can call the ListBaselines operation to query the ID. | 10000 |
Response parameters
Examples
Sample success responses
JSON
format
{
"Success": true,
"ErrorCode": "1031203110000",
"ErrorMessage": "Baseline deletion failed with nodes dependent on baseline",
"HttpStatusCode": 200,
"Data": true,
"RequestId": "0000-ABCD-EF****"
}
Error codes
For a list of error codes, visit the Service error codes.