Skip to main content

 

 

 

 

Template:OutSystems/Documentation_KB/Breadcrumb_New_Layout

 

 

Template:OutSystems/OSLanguageSwitcher

 

 

 

OutSystems

Supported Media Types in REST API Requests

Template:OutSystems/Documentation_KB/ContentCollaboration
  • Edit
    Collaborate with us
    Edit this page on GitHub
  • 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?