Commit ea109704d10d7fc5e9808e5355df994a7f6e109b

Authored by Job van der Voort
1 parent 23665d25

everything in header

Showing 1 changed file with 4 additions and 3 deletions   Show diff stats
doc/api/deploy_key_multiple_projects.md
... ... @@ -5,15 +5,16 @@ If you want to easily add the same deploy key to multiple projects in the same g
5 5 First, find the ID of the projects you're interested in, by either listing all projects:
6 6  
7 7 ```
8   -curl https://gitlab.com/api/v3/projects?private_token=abcdef
  8 +curl --header 'PRIVATE-TOKEN: abcdef' https://gitlab.com/api/v3/projects
9 9 ```
10 10  
11 11 Or finding the id of a group and then listing all projects in that group:
12 12  
13 13 ```
14   -curl https://gitlab.com/api/v3/groups?private_token=abcdef
  14 +curl --header 'PRIVATE-TOKEN: abcdef' https://gitlab.com/api/v3/groups
15 15  
16   -curl https://gitlab.com/api/v3/groups/1234?private_token=abcdef # where the id of the group is 1234
  16 +# For group 1234:
  17 +curl --header 'PRIVATE-TOKEN: abcdef' https://gitlab.com/api/v3/groups/1234
17 18 ```
18 19  
19 20 With those IDs, add the same deploy key to all:
... ...