Search + K

Command Palette

Search for a command to run...

Sign In

Create artifact metadata storage record

POST /orgs/{org}/artifacts/metadata/storage-record
Copy endpoint
https://api.github.com

Create metadata storage records for artifacts associated with an organization. This endpoint will create a new artifact storage record on behalf of any artifact matching the provided digest and associated with a repository owned by the organization.

Parameters

path Path Parameters

Name Type
org required

The organization name. The name is not case sensitive.

string

Request Body

application/json required
{
name: string;
digest: `sha256:${string}`;
version?: string;
artifact_url?: string;
path?: string;
registry_url: string;
repository?: string;
status?: "active" | "eol" | "deleted";
github_repository?: string;
}

Responses

200 application/json

Artifact metadata storage record stored successfully.

{ total_count?: number;storage_records?: {
id?: number;
name?: string;
digest?: string;
artifact_url?: string | null;
registry_url?: string;
repository?: string | null;
status?: string;
created_at?: string;
updated_at?: string;
}
[]
; }