apicheats.dev Cheat sheet Raw .md
POST

Try POST /repos/{owner}/{repo}/dependency-graph/snapshots — GitHub API

GitHub playground

Create a snapshot of dependencies for a repository

Credentials

Kept in this tab only. Requests go through apicheats.dev's same-origin proxy straight to api.github.com; the proxy stores and logs nothing about them.

Headers

Path

Body application/json

8 body fields
  • version · required · integer — The version of the repository snapshot submission.
  • job · required · object — Request body field job.
  • sha · required · string — The commit SHA associated with this dependency snapshot. Maximum length: 64 characters.
  • ref · required · string — The repository branch that triggered this snapshot.
  • detector · required · object — A description of the detector used.
  • metadata · optional · object — User-defined metadata to store domain-specific information limited to 8 keys with scalar values.
  • manifests · optional · object — A collection of package manifests, which are a collection of related dependencies declared in a file or representing a logical group of dependencies.
  • scanned · required · string — The time at which the snapshot was scanned.