Method: Gitlab::Client::Projects#archive_project

Defined in:
lib/gitlab/client/projects.rb

#archive_project(id) ⇒ Gitlab::ObjectifiedHash

Archives a project.

Examples:

Gitlab.archive_project(4)

Parameters:

  • id (Integer, String)

    The ID or path of a project.

Returns:


632
633
634
# File 'lib/gitlab/client/projects.rb', line 632

def archive_project(id)
  post("/projects/#{url_encode id}/archive")
end