CentraSite 10.3 | CentraSite User’s Guide | Runtime Governance | Run-Time Policy Management | Built-In Run-Time Actions Reference (CentraSite Business UI) | Built-in Actions for Run-Time Policies (CentraSite Business UI) | Set Media Type
 
Set Media Type
This action specifies the content type for a REST request or response. You would need to configure the Set Media Type action to:
*Specify the content type for a REST request received from a client. If the content type header is missing in a client request sent to an API, Mediator adds the content type specified here before sending the request to the native API.
*Specify the content type for a REST response (both for a REST API and SOAP API exposed as REST) before sending the response to the client. If a native API response (both for a REST API and SOAP API exposed as REST) does not contain a content type header, Mediator adds the content type specified here before sending the response to the client.
Note:
This action is applicable only if the action Enable REST Support is set for a SOAP API.
Input Parameters
Media Type
(String). The content type header that CentraSite uses to send the REST request or response.
Examples for content types: application/json, application/xml