Skip to content

Commit 0484e1c

Browse files
committed
Refactor examples using link to getting a Pipelines ID section
1 parent 78af546 commit 0484e1c

File tree

1 file changed

+4
-28
lines changed

1 file changed

+4
-28
lines changed

pages/apis/graphql/cookbooks/pipelines.md

Lines changed: 4 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -160,15 +160,7 @@ query AllPipelineMetrics {
160160

161161
## Delete a pipeline
162162

163-
First, get the ID of the pipeline you want to delete:
164-
165-
```graphql
166-
query {
167-
pipeline(slug:"organization-slug/pipeline-slug") {
168-
id
169-
}
170-
}
171-
```
163+
First, [get the ID of the pipeline](#get-a-pipelines-id) you want to delete:
172164

173165
Then, use the ID to delete the pipeline:
174166

@@ -185,7 +177,7 @@ mutation PipelineDelete {
185177

186178
### Delete multiple pipelines
187179

188-
Get the IDs of the Pipelines, as above, and use the IDs to delete multiple pipelines:
180+
Get [get the IDs of the pipeline](#get-a-pipelines-id) and use the IDs to delete multiple pipelines:
189181

190182
```graphql
191183
mutation PipelinesDelete {
@@ -225,15 +217,7 @@ mutation UpdateSchedule {
225217

226218
## Archive a pipeline
227219

228-
First, get the ID of the pipeline you want to archive:
229-
230-
```graphql
231-
query {
232-
pipeline(slug:"organization-slug/pipeline-slug") {
233-
id
234-
}
235-
}
236-
```
220+
First, [get the ID of the pipeline](#get-a-pipelines-id) you want to archive:
237221

238222
Then, use the ID to archive the pipeline:
239223

@@ -253,15 +237,7 @@ mutation PipelineArchive {
253237

254238
## Unarchive a pipeline
255239

256-
First, get the ID of the pipeline you want to unarchive:
257-
258-
```graphql
259-
query {
260-
pipeline(slug:"organization-slug/pipeline-slug") {
261-
id
262-
}
263-
}
264-
```
240+
First, [get the ID of the pipeline](#get-a-pipelines-id) you want to unarchive:
265241

266242
Then, use the ID to unarchive the pipeline:
267243

0 commit comments

Comments
 (0)