Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

How to change the response status codes in integrated developer portal?

Hello Team,

How to change the response status codes in integrated developer portal?

Below are the details.

We need to change 200 to 201 in developer portal.

we added the responses as below in open API spec file.

responses:
  '201':
    description: Success
    content:
      application/json:
        schema:
          $ref: '#/components/schemas/jsonresponse'     
0 1 108
1 REPLY 1

After the update to your API spec file, you'll need to update your portal to reflect the changes. Under the portal configuration, go to "API catalog", select your API and update the snapshot.

Top Solution Authors