Skip to content

Commit ae48a8f

Browse files
committed
Add cURL and CLI examples to POST /tags
1 parent 6a8fc65 commit ae48a8f

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

openapi.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12021,6 +12021,23 @@ paths:
1202112021
$ref: '#/components/schemas/Tag'
1202212022
default:
1202312023
$ref: '#/components/responses/ErrorResponse'
12024+
x-code-samples:
12025+
- lang: Shell
12026+
source: >
12027+
curl -H "Content-Type: application/json" \
12028+
-H "Authorization: Bearer $TOKEN" \
12029+
-X POST -d '{
12030+
"label": "example tag",
12031+
"linodes": [123,456],
12032+
"volumes": [9082,10003]
12033+
}' \
12034+
https://api.linode.com/v4/tags
12035+
- lang: CLI
12036+
source: >
12037+
linode-cli tags create \
12038+
--label 'example tag' \
12039+
--linodes (123 456) \
12040+
--volumes (9082 10003)
1202412041
/tags/{label}:
1202512042
x-linode-cli-command: tags
1202612043
parameters:

0 commit comments

Comments
 (0)