Maximum Request Size
Limiting requests’ payload maximum size
Consumers of the gateway might see their requests limited when using the max_payload property. All requests are validated when this attribute is set, checking that their size is inside the limits set.
There are two possible placements of this attribute:
At the service level: limits the requests of all activity
At the endpoint level: limits the requests of specific endpoints.
You can set both limits simultaneously if you want. When both limits exist, the service level limit is checked first, and if it passes, then it checks the endpoint limit. This means that the endpoint max_payload must be equal to or smaller than the one at the service. Otherwise, the endpoint limit will never have an opportunity to work.
Limit the maximum request size to an endpoint
Step 1:For Endpoint Level open endpoint secton click on response in static response you can able to see below fields
Step 2: In Service Level you can find open service settings in router section you can see Gzip compression

