Software AG Products 10.7 | Using API Gateway | Policies | System-defined Stages and Policies | Transport | Set Media Type
 
Set Media Type
This policy specifies the content type for a REST request. If the content type header is missing in a client request sent to an API, API Gateway adds the content type specified here before sending the request to the native API.
The table lists the properties that you can specify for this policy:
Property
Description
Default Content-Type
Specifies the default content type for REST request received from a client .
Default Accept Header
Specifies the default accept header for REST request received from a client.
As both these properties support variable framework, you can use the available variables to specify the content type and accept header. For details about the variables available in API Gateway, see Variables Available in API Gateway.