GitLab API

GitlabTool

Actions1095

Projects → postApiV4ProjectsIdJobsJobIdArtifactsKeep

AI-generated

Summary

Mark a job artifact in a GitLab project to be kept from expiration by sending a POST request to the corresponding project and job endpoint.

Inputs

  • Id (required) — The ID or URL-encoded path of the project whose job artifact you want to keep.
  • Job_id (required) — The ID of the job whose artifact should be preserved.
  • Skip Authentication — Optionally skip using authentication for this request.

Output shape

no body – success/failure status only

This operation triggers a POST request to /api/v4/projects/{id}/jobs/{job_id}/artifacts/keep without returning a payload. Success indicates the artifact's expiration is prevented.

Links

Discussion