diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2019-12-17 15:08:15 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2019-12-17 15:08:15 +0000 |
commit | c2b98d3dbd47ab92c79c702276fe9130d9a28036 (patch) | |
tree | bf4071f551fdc12c22b23b2bb66483064e7b9ea9 /doc/api/projects.md | |
parent | badb9c1deacbea601b02f88811b7e123589d9251 (diff) | |
download | gitlab-ce-c2b98d3dbd47ab92c79c702276fe9130d9a28036.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc/api/projects.md')
-rw-r--r-- | doc/api/projects.md | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/doc/api/projects.md b/doc/api/projects.md index b49fac8d2c9..209d41d62cd 100644 --- a/doc/api/projects.md +++ b/doc/api/projects.md @@ -1713,7 +1713,12 @@ Example response: ## Remove project -Removes a project including all associated resources (issues, merge requests etc). +This endpoint either: + +- Removes a project including all associated resources (issues, merge requests etc). +- From GitLab 12.6 on Premium or higher tiers, marks a project for deletion. Actual + deletion happens after number of days specified in + [instance settings](../user/admin_area/settings/visibility_and_access_controls.md#project-deletion-adjourned-period-premium-only). ``` DELETE /projects/:id @@ -1723,6 +1728,18 @@ DELETE /projects/:id | --------- | ---- | -------- | ----------- | | `id` | integer/string | yes | The ID or [URL-encoded path of the project](README.md#namespaced-path-encoding) | +## Restore project marked for deletion **(PREMIUM)** + +Restores project marked for deletion. + +``` +POST /projects/:id/restore +``` + +| Attribute | Type | Required | Description | +| --------- | ---- | -------- | ----------- | +| `id` | integer/string | yes | The ID or [URL-encoded path of the project](README.md#namespaced-path-encoding) | + ## Upload a file Uploads a file to the specified project to be used in an issue or merge request description, or a comment. |