--request POST "https://gitlab.example.com/api/v4/projects/24/releases"
```
...
...
@@ -513,7 +513,7 @@ POST /projects/:id/releases/:tag_name/evidence
Example request:
```shell
curl --request POST --header"PRIVATE-TOKEN: gDybLx3yrUK_HLp3qPjS""https://gitlab.example.com/api/v4/projects/24/releases/v0.1/evidence"
curl --request POST --header"PRIVATE-TOKEN: <your_access_token>""https://gitlab.example.com/api/v4/projects/24/releases/v0.1/evidence"
```
Example response:
...
...
@@ -542,7 +542,7 @@ PUT /projects/:id/releases/:tag_name
Example request:
```shell
curl --header'Content-Type: application/json'--request PUT --data'{"name": "new name", "milestones": ["v1.2"]}'--header"PRIVATE-TOKEN: gDybLx3yrUK_HLp3qPjS""https://gitlab.example.com/api/v4/projects/24/releases/v0.1"
curl --header'Content-Type: application/json'--request PUT --data'{"name": "new name", "milestones": ["v1.2"]}'--header"PRIVATE-TOKEN: <your_access_token>""https://gitlab.example.com/api/v4/projects/24/releases/v0.1"
@@ -87,7 +87,7 @@ Alternatively, you can use the API to protect an environment:
1. Use the API to add the group to the project as a reporter:
```shell
$ curl --request POST --header"PRIVATE-TOKEN: xxxxxxxxxxxx"--request POST "https://gitlab.com/api/v4/projects/22034114/share?group_id=9899826&group_access=20"
$ curl --request POST --header"PRIVATE-TOKEN: <your_access_token>"--request POST "https://gitlab.com/api/v4/projects/22034114/share?group_id=9899826&group_access=20"