Skip to content

Commit fc301ff

Browse files
Merge pull request #212 from nmelehan/tags-post-examples
Add cURL and CLI examples to POST /tags
2 parents ae78921 + c957383 commit fc301ff

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

openapi.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12072,6 +12072,25 @@ paths:
1207212072
$ref: '#/components/schemas/Tag'
1207312073
default:
1207412074
$ref: '#/components/responses/ErrorResponse'
12075+
x-code-samples:
12076+
- lang: Shell
12077+
source: >
12078+
curl -H "Content-Type: application/json" \
12079+
-H "Authorization: Bearer $TOKEN" \
12080+
-X POST -d '{
12081+
"label": "example tag",
12082+
"linodes": [123,456],
12083+
"volumes": [9082,10003]
12084+
}' \
12085+
https://api.linode.com/v4/tags
12086+
- lang: CLI
12087+
source: >
12088+
linode-cli tags create \
12089+
--label 'example tag' \
12090+
--linodes 123 \
12091+
--linodes 456 \
12092+
--volumes 9082 \
12093+
--volumes 10003
1207512094
/tags/{label}:
1207612095
x-linode-cli-command: tags
1207712096
parameters:
@@ -12134,6 +12153,11 @@ paths:
1213412153
$ref: '#/components/schemas/PaginationEnvelope/properties/results'
1213512154
default:
1213612155
$ref: '#/components/responses/ErrorResponse'
12156+
x-code-samples:
12157+
- lang: Shell
12158+
source: >
12159+
curl -H "Authorization: Bearer $TOKEN" \
12160+
"https://api.linode.com/v4/tags/example tag"
1213712161
delete:
1213812162
summary: Delete a Tag
1213912163
description: >

0 commit comments

Comments
 (0)