Versions Compared

Key

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

Create a new document

...

Get JSON By Id

Description

Get artifact JSON by an artifact id.

Package Details

Interface

IArtifactManager

Syntax

Task<string> GetJsonById(int artifactId);

Returns

Task<string>

API Endpoint

GET

api/v1/artifacts/{artifactId]

Parameters

Parameter

Description

Parameter Type

Sample request body

...

languagejson

artifactId

An artifact id

Path

Returns

On success, 200 Ok

On error, 400 Bad Request

On authorization error, 403 Forbidden

Example

Code Block
languagec#
const artifactId= 100;
var artifact = await ArtifactManager.GetJsonById(artifactId);