Defining responses
Define one or several responses for your operation.
- To add responses to your operation, click the name of the operation, scroll down to
the Responses section and click
Add.
- Select a Status code and add a
Description if needed.
You can select:
- A specific status code such as 200.
- A response range such as 2XX.
- A Default response.
- To add a header, in the Headers section, click
Headers.
- Click Add header.
- Enter the following information:
- Name: Start typing a name to see a drop-down list of
headers.
- Type: You can use a reusable data type.
- More attributes are available to edit your header.
- Click Add.