Skip to main content

Extensibility and Integration

 

OutSystems

Supported Media Types in REST API Requests

OutSystems supports many media types in the Content-Type header of REST API requests. However, depending on the input parameter's data type, the following rules apply:

Input Parameter Data Type Accepted Request Media Type
Record, List application/json
Basic Data Types text/<any_subtype>
application/json
application/x-www-form-urlencoded
Binary any

If you send a request with a Content-Type header that the method doesn't support, you receive a response with status code 415. Additionally, you get the following error message in the response body:

{
  "Errors": [
    "The request entity's media type 'text/plain' is not supported for this resource."
  ],
  "StatusCode": 415
}
  • Was this article helpful?