Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Description

Gets a collection of artifacts related to a specific service request.

Package Details

Interface

IArtifactManager

Syntax

Task<ICollection<ArtifactInfo>> GetArtifacts(int serviceRequestId, ArtifactSelectionType artifactSelectionType);

Returns

Task<ICollection<ArtifactInfo>>

API Endpoint

GET

api/v1/servicerequests/{id}/artifacts

Parameters

Parameter

Description

Parameter Type

id

Service request id

Path

artifactSelectionType

Possible values are:

  • All

  • Active

  • Archived

Query string

Returns

On success, 200 Ok

On error, 400 Bad Request

On authorization error, 403 Forbidden

Example

Code Block
languagec#
const int serviceRequestId = 2245;

var allArtifacts = await ArtifactManager.GetArtifacts(serviceRequestId, ArtifactSelectionType.All);