All Products
Search
Document Center

DataWorks:DeleteBaseline

Last Updated:Nov 21, 2024

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

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
BaselineIdlongYes

The baseline ID. You can call the ListBaselines operation to query the ID.

1234
ProjectIdlongYes

The ID of the workspace to which the baseline belongs. You can call the ListBaselines operation to query the ID.

10000

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

Successboolean

Indicates whether the request was successful. Valid values:

  • true
  • false
true
ErrorCodestring

The error code.

1031203110000
ErrorMessagestring

The error message.

Baseline deletion failed with nodes dependent on baseline
HttpStatusCodeinteger

The HTTP status code.

200
Databoolean

Indicates whether the deletion was successful.

true
RequestIdstring

The request ID.

0000-ABCD-EF****

Examples

Sample success responses

JSONformat

{
  "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.