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
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | DeleteBaseline | The operation that you want to perform. Set the value to DeleteBaseline. |
BaselineId | Long | Yes | 1234 | The ID of the baseline.You can call the ListBaselines operation to obtain the ID. |
ProjectId | Long | Yes | 10000 | The ID of the workspace to which the baseline belongs. You can call the ListBaselines operation to obtain the ID. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
Success | Boolean | true | Indicates whether the request was successful.
|
ErrorCode | String | 1031203110000 | The error code returned. |
ErrorMessage | String | Baseline deletion failed with nodes dependent on baseline | The error message returned. |
HttpStatusCode | Integer | 200 | The HTTP status code returned. |
Data | Boolean | true | Indicates whether the deletion was successful. |
RequestId | String | 0000-ABCD-EF**** | The request ID. You can use the ID to query logs and troubleshoot issues. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=DeleteBaseline
&BaselineId=1234
&ProjectId=10000
&Common request parameters
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<DeleteBaselineResponse>
<Success>true</Success>
<ErrorCode>1031203110000</ErrorCode>
<ErrorMessage>Baseline deletion failed with nodes dependent on baseline</ErrorMessage>
<HttpStatusCode>200</HttpStatusCode>
<Data>true</Data>
<RequestId>0000-ABCD-EF****</RequestId>
</DeleteBaselineResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"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, see Service error codes.