/
GetArtifacts()
GetArtifacts()
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:
| Query string |
Returns
On success, 200 Ok
On error, 400 Bad Request
On authorization error, 403 Forbidden
Example
const int serviceRequestId = 2245;
var allArtifacts = await ArtifactManager.GetArtifacts(serviceRequestId, ArtifactSelectionType.All);
, multiple selections available,
Related content
Delete()
Delete()
Read with this
Exists()
Exists()
Read with this
Get<T>()
Get<T>()
Read with this
CreateFromJson()
CreateFromJson()
Read with this
Create()
Create()
Read with this
GetById<T>()
GetById<T>()
Read with this