ApiContentTypeMapping

ApiContentTypeMapping
ApiContentTypeMapping

Association between a MIME content type (e.g., application/json) and the schema enforced for request or response payloads.

JSON Example
{
    "content_type": "string",
    "schema": {
        "max_value": "number",
        "min_value": "number",
        "schema_ref": "string",
        "string_enum_values": [
            "string"
        ],
        "string_format": "string",
        "string_max_length": 0,
        "string_min_length": 0,
        "string_pattern": "string",
        "type": "string"
    }
}
string
content_type
Required  

The content type of the request/response. This can be a pattern like application/json* for request. For response, it is the content type of the response. Field introduced in 32.1.4. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.

schema
Required  

Schema specification for scalar types, arrays, or schema references, defining data types and validation constraints for non-object properties.