Skip to content

User Preferences Update - Add char limit and fix examples #719

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 29, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 7 additions & 8 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17938,15 +17938,13 @@ paths:
schema:
type: object
description: A dictionary of user preferences.
example: { "key1": "value1", "key2": "value2"}
example: { "key1": "value1", "key2": "value2" }
default:
$ref: '#/components/responses/ErrorResponse'
x-code-samples:
- lang: Shell
source: >
curl -H "Content-Type: application/json" \
-H "Authorization: Bearer $TOKEN" \
-X GET \
curl -H "Authorization: Bearer $TOKEN" \
https://api.linode.com/v4/profile/preferences
put:
tags:
Expand Down Expand Up @@ -17976,7 +17974,9 @@ paths:
schema:
type: object
description: |
Arbitrary JSON of your choosing.
Arbitrary JSON of your choosing. Overwrites any existing preferences for this user.

Total length cannot exceed 65,535 characters.
responses:
'200':
description: Returns an object of user preferences.
Expand All @@ -17985,7 +17985,7 @@ paths:
schema:
type: object
description: An object of user preferences.
example: { "key1": "value1", "key2": "value2"}
example: { "key1": "value1", "key2": "value2" }
default:
$ref: '#/components/responses/ErrorResponse'
x-code-samples:
Expand All @@ -17995,10 +17995,9 @@ paths:
-H "Authorization: Bearer $TOKEN" \
-X PUT -d '{
"key1": "value1",
"key1": "value2"
"key2": "value2"
}' \
https://api.linode.com/v4/profile/preferences

/regions:
x-linode-cli-command: regions
get:
Expand Down