From 082d4d38d0f852d3587c0afbeb06b397b2df8450 Mon Sep 17 00:00:00 2001 From: bbiggerr Date: Mon, 13 Jun 2022 10:39:32 -0400 Subject: [PATCH 1/4] Account active_promotions readOnly --- openapi.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/openapi.yaml b/openapi.yaml index af7942b25..5f26dcb8b 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -18914,6 +18914,7 @@ components: properties: active_promotions: type: array + readOnly: true items: $ref: '#/components/schemas/Promotion' active_since: From 00c8ac78f8ee0fefc7a3e65821653977715b16ab Mon Sep 17 00:00:00 2001 From: bbiggerr Date: Mon, 13 Jun 2022 10:55:03 -0400 Subject: [PATCH 2/4] Update Account Update command examples --- openapi.yaml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/openapi.yaml b/openapi.yaml index 5f26dcb8b..157ecc3d1 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -469,14 +469,25 @@ paths: "last_name": "Smith", "phone": "555-555-1212", "state": "PA", + "tax_id": "ATU99999999", "zip": "19102", }' \ https://api.linode.com/v4/account - lang: CLI source: > linode-cli account update \ + --address_1 "123 Main St." \ + --address_2 "Suite 101" \ + --city Philadelphia \ + --company My Company \ LLC \ + --country US \ + --email jsmith@mycompany.com \ --first_name John \ - --last_name Smith + --last_name Smith \ + --phone 555-555-1212 \ + --state PA \ + --tax_id ATU99999999 \ + --zip 19102 /account/cancel: x-linode-cli-command: account post: From 63e23218497b719be223b2a00a80366359e63cf5 Mon Sep 17 00:00:00 2001 From: bbiggerr Date: Mon, 13 Jun 2022 11:35:21 -0400 Subject: [PATCH 3/4] Update Account Update description for US zip validation --- openapi.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/openapi.yaml b/openapi.yaml index 157ecc3d1..4a2523758 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -438,7 +438,12 @@ paths: - oauth: - account:read_write requestBody: - description: Update contact and billing information. + description: | + Update contact and billing information. + + Account properties that are excluded from a request remain unchanged. + + When updating an Account's `country` to "US", an error is returned if the Account's `zip` is not a valid US zip code. required: true content: application/json: From 0c7f092c2a58dc5338784fe48e543f58285a8164 Mon Sep 17 00:00:00 2001 From: bbiggerr Date: Mon, 13 Jun 2022 11:37:41 -0400 Subject: [PATCH 4/4] Fix Account Update shell example --- openapi.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openapi.yaml b/openapi.yaml index 4a2523758..0ef8bb12d 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -475,7 +475,7 @@ paths: "phone": "555-555-1212", "state": "PA", "tax_id": "ATU99999999", - "zip": "19102", + "zip": "19102" }' \ https://api.linode.com/v4/account - lang: CLI