Headers
Last updated
Headers contain the metadata for an API.
Headers are defined for the Request body and Response body.
There can be multiple headers for an API.
The header for an API comprises the following fields:
Header Name: This is the header's name. A header always has a unique name and conforms to the variable name rules. This name will be used when working with the header value in Actions.
Header Text Name: This field defines how the header name would appear in the request received or in the response. It can be the same as the Header name or a different text as to how the header should appear.
Header Type: This section defines if the header information/metadata will be related to either:
Request: The header is only available in the request information.
Response: The header is only available in the response information.
Request and Response: The header is available for both the request and response.
Documentation Data Type: This field is for documentation reasons so that the developer of the API can advise the users of the API on what data type the header values should be conformant with.
Value of the Header: This field contains the value of the Header. This is the value placed on the right side of the ‘:’ e.g., Content-Type: application/json
Header Example: This field can be used to write an example of the header.
Parameter Description: This field can be used to describe this parameter.