Create artifact metadata storage record
POST
/orgs/{org}/artifacts/metadata/storage-record 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;
}
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;
}[]; }
id?: number;
name?: string;
digest?: string;
artifact_url?: string | null;
registry_url?: string;
repository?: string | null;
status?: string;
created_at?: string;
updated_at?: string;
}[]; }