UpdateFromJson()

Update an artifact

Description

The UpdateFromJson() method is used to update an artifact with the provided JSON.

Package Details

Interface

IArtifactManager

Syntax

ArtifactManager.UpdateFromJson(int artifactId, string artifact, string documentVersion, int serviceRequestId, int userId)

Returns

Task<ArtifactInfo>

API

PUT

/api/v1/artifacts/{id}

Parameters

Parameter

Description

Parameter Type

Parameter

Description

Parameter Type

artifactId

An artifact id

Path

artifact

Artifact information

Request Body

documentVersion

Version number.

Query string

serviceRequestId

A service request id.

Query string

userId

Current user id.

Query string

Returns

HTTP 200 OK if successful, 401 if unauthorized, 400 otherwise.

Example

await _artifactManager.UpdateFromJson(artifactId, artifact, documentVersion, serviceRequestId, CurrentUser.Id);