List Artifacts

/api/v1/projects/{projectId}/artifacts?properties={properties}&status={status}&comments={comments}&traces={traces}&attachments={attachments}&richtextasplain={richtextasplain}&inlinecss={inlinecss}&offset={offset}&limit={limit}&content={content}

Description

Retrieves a list of artifacts. It is also possible to filter requested artifacts.

Artifacts are only included in the response if the user (that is was authenticated to obtain the token) has view permissions to those artifacts.

URL
Structure

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

  • ProjectId: The ID of the project.

Supported Methods

  • HEAD
  • GET
  • POST: If you want to filter the results, you must use override the GET method and use the POST method instead.

Request URI Parameters

  • Properties (optional): Defines whether the properties should be loaded for the artifacts. This parameter can be set to true or false. The default is false if not specified. The default is true if the parameter is included in the URI with no given value.
  • Status (optional): Defines whether or not the status of the artifact should be loaded. This parameter can be set to true or false. The default is false if not specified. The default is true if the parameter is included in the URI with no given value.

  • Comments (optional): Indicates whether to retreive comments of the artifact. This parameter can be set to true or false. The default is false if not specified. The default is true if the parameter is included in the URI with no given value.

  • Traces (optional): Indicates whether to retrieve traces of the artifact. Valid options include: None, All, Parent, Child, Manual, Reuse and Other. The default is None if not specified. The default is All if the parameter is included in the URI with no given value.

  • Attachments (optional): Indicates whether to retrieve information about the attachments of the artifact. This parameter can be set to true or false. The default is false if not specified. The default is true if the parameter is included in the URI with no given value.

  • RichTextAsPlain (optional): Defines whether or not to retrieve all rich-text properties as Plain Text instead of HTML. This parameter can be set to true or false. The default is false if not specified. The default is true if the parameter is included in the URI with no given value.

  • InlineCSS (optional): Defines whether or not to retrieve all rich-text properties with locally defined or inline styles. This parameter can be set to true or false. The default is false if not specified. The default is true if the parameter is included in the URI with no given value. When this parameter is set to false, rich-text properties return internal styles that are defined within the <head> section of the HTML.

    Note: This parameter is supported in Blueprint 6.1 and later.

  • Offset (optional): Defines the paging offset (that is, index) at which the results start. Offset the default is 0.

  • Limit (optional): Defines the number of items (projects, artifacts, etc) to retrieve per query. This parameter can be set to an integer. The default is 100. The minimum value is 1 and the maximum value is 500.

  • Content (optional): Defines whether or not to retrieve the artifact's content. This parameter can be set to true or false. The default is false if not specified. The default is true if the parameter is included in the URI with no given value.

HTTP status codes

Examples

ClosedXML Example

ClosedJSON Example