Correct curl examples for archive and unarchive project API
[ci skip]
This commit is contained in:
parent
aa841e6fe1
commit
8996548e13
|
@ -850,7 +850,7 @@ POST /projects/:id/archive
|
||||||
| `id` | integer/string | yes | The ID of the project or NAMESPACE/PROJECT_NAME |
|
| `id` | integer/string | yes | The ID of the project or NAMESPACE/PROJECT_NAME |
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
curl --request POST --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v3/projects/archive"
|
curl --request POST --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v3/projects/5/archive"
|
||||||
```
|
```
|
||||||
|
|
||||||
Example response:
|
Example response:
|
||||||
|
@ -939,7 +939,7 @@ POST /projects/:id/unarchive
|
||||||
| `id` | integer/string | yes | The ID of the project or NAMESPACE/PROJECT_NAME |
|
| `id` | integer/string | yes | The ID of the project or NAMESPACE/PROJECT_NAME |
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
curl --request POST --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v3/projects/unarchive"
|
curl --request POST --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v3/projects/5/unarchive"
|
||||||
```
|
```
|
||||||
|
|
||||||
Example response:
|
Example response:
|
||||||
|
|
Loading…
Reference in New Issue