GitLab API icon

GitLab API

Gitlab

Actions1062

Projects → postApiV4ProjectsIdJobsJobIdArtifactsKeep

AI-generated

Summary

Mark a specified job artifact in a GitLab project to be kept indefinitely, preventing its cleanup.

Inputs

  • id (required) — The ID or URL-encoded path of the GitLab project containing the job.
  • job_id (required) — The ID of the job whose artifact should be marked to keep.

Output shape

no body — success/failure only

The operation triggers a POST request that marks the artifact for indefinite retention. There is no response body content; success is indicated by the HTTP status code.

Links

Discussion