GitLab API icon

GitLab API

Gitlab

Actions1062

Projects → postApiV4ProjectsIdArchive

AI-generated

Summary

Archive a project in GitLab by sending a POST request to the /api/v4/projects/{id}/archive endpoint.

Inputs

  • id (required) — The ID or URL-encoded path of the project to archive.
  • skipAuthentication — Option to skip authentication when making the request; defaults to false meaning authentication is used.

Output shape

a single record representing the archived project status or confirmation response from GitLab's archive API endpoint.

The operation requires authentication via the configured GitLab API credentials unless 'Skip Authentication' is enabled. The project ID must be provided as a path parameter. The response directly reflects the GitLab API's archive endpoint output.

Examples

Example 1: Archive a GitLab project with ID 123

Set 'Id' to '123' and ensure GitLab credentials are configured for authentication.

Links

Discussion