From 94dbbf0ea07dd8a562b9245ec52b9993d4bb5781 Mon Sep 17 00:00:00 2001 From: Thisal Tennakoon Date: Tue, 23 Jul 2024 13:21:22 +0530 Subject: [PATCH] Add Change subscription business plan REST API doc --- .../publisher-v4/publisher-v4.yaml | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/en/docs/reference/product-apis/publisher-apis/publisher-v4/publisher-v4.yaml b/en/docs/reference/product-apis/publisher-apis/publisher-v4/publisher-v4.yaml index ca947d3822..680feb74e8 100644 --- a/en/docs/reference/product-apis/publisher-apis/publisher-v4/publisher-v4.yaml +++ b/en/docs/reference/product-apis/publisher-apis/publisher-v4/publisher-v4.yaml @@ -4371,6 +4371,44 @@ paths: "https://127.0.0.1:9443/api/am/publisher/v4/subscriptions/unblock-subscription?subscriptionId=64eca60b-2e55-4c38-8603-e9e6bad7d809"' operationId: unBlockSubscription + /subscriptions/change-business-plan: + post: + tags: + - Subscriptions + summary: Change subscription business plan + description: | + This operation can be used to change the business plan of a subscription specifying the subscription Id and the business plan. + parameters: + - $ref: '#/components/parameters/subscriptionId-Q' + - name: businessPlan + in: query + description: | + The business plan to be assigned to the subscription. + required: true + schema: + type: string + - $ref: '#/components/parameters/If-Match' + responses: + 200: + description: | + OK. + Subscription business plan was changed successfully. + 400: + $ref: '#/components/responses/BadRequest' + 403: + $ref: '#/components/responses/Forbidden' + 404: + $ref: '#/components/responses/NotFound' + 409: + $ref: '#/components/responses/Conflict' + security: + - OAuth2Security: + - apim:subscription_manage + x-code-samples: + - lang: Curl + source: 'curl -k -H "Authorization: Bearer ae4eae22-3f65-387b-a171-d37eaa366fa8" -X POST + "https://127.0.0.1:9443/api/am/publisher/v4/subscriptions/change-business-plan?subscriptionId=92c50632-012f-4739-b37d-baa23008c813&businessPlan=Silver"' + operationId: changeSubscriptionBusinessPlan ###################################################### # The "Thorttling Tier Collection" resource APIs