Get artifact revision
Read an artifact revision with its full source. Supply revision_id alone, or artifact_id with an exact version, or artifact_id alone for the highest version. Returns null when the revision ID or the requested version of an existing artifact is absent, and 404 when the artifact is absent.
GET
/v1/projects/{projectId}/artifact-revisionsAuthorization
AuthorizationPersonal API key · headerrequiredYour personal API key from Settings > Personal API Keys, sent as Bearer <key>.
X-Organization-IdOrganization ID · headerrequiredThe organization to act in. Copy it with Copy organization ID in the organization menu or the settings sidebar.
Path parameters
projectIdstringrequiredQuery parameters
revision_idstring<uuid>Exact revision ID; omit artifact_id and version when supplied
matches ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
artifact_idstring<uuid>Artifact to read; required when revision_id is omitted
matches ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
versionintegerExact version for artifact_id; omit to read its highest version
min 1 · max 2147483647
Responses
200
Response for status 200
revisionobject | nullrequiredShow propertiesHide properties
Any of:
object
idstringrequiredartifact_idstringrequiredversionintegerrequiredmax 9007199254740991
storagestringrequiredfilenamestringrequiredsize_bytesintegerrequiredmin 0 · max 9007199254740991
created_bystring | nullrequiredcreated_atstringrequiredsource_codestring | nullrequirednull
null