Delete Traces

Note: This request is supported in Blueprint 5.4 and later.

api/v1/projects/{projectId}/artifacts/{artifactId}/traces?reconcilewithtwoway={boolean}

Description

Deletes the specified trace(s).

You can only delete manual traces (that is, a trace manually added by a user). You cannot delete parent/child relationships or other relationships.

Note: You can delete more than one trace in a single request as long as the ArtifactId you specify in the request body has a trace relationship with the artifact in the request URI.

URL
Structure

[Blueprint_URI]/api/v1/projects/{ProjectId}/artifacts/{ArtifactId}/traces

  • ProjectId: The ID of the project that contains the first artifact in the trace relationship you want to delete. A trace relationship always includes two artifacts.
  • ArtifactId: The ID of the first artifact in the trace relationship you want to delete. A trace relationship always includes two artifacts.

Supported Methods

Request URI Parameters

  • ReconcileWithTwoWay (optional): Indicates how to handle the existence of an inverse trace. This parameter can be set to true or false, and is used in conjunction with the Direction parameter in the request body that is set to To or From.
    If reconcileWithTwoWay is set to true, and a bidirectional trace exists, the trace is not deleted; instead, the trace direction opposite to that in the request body is preserved (that is, the inverse trace replaces the bidirectional trace).
    The default is false if not specified. The default is true if the parameter is included in the URI with no given value.
  • Note: This parameter is available in Blueprint 6.3 and later.

Request Body Parameters

The trace(s) must be included in the body of the request. Read more about how to specify one or more traces in the request body.

Blueprint result codes

Your response may contain ResultCode and Message parameters if your request involves changes to Blueprint data.  These parameters provide detailed information about the result of your request.

HTTP status codes

Examples

ClosedXML Examples

Example 1
Example 2: using the ReconcileWithTwoWay parameter to retain the inverse of a bidirectional trace relationship

ClosedJSON Examples

Example 1
Example 2: using the ReconcileWithTwoWay parameter to retain the inverse of a bidirectional trace relationship