---
sourceDocument: Zurich API Reference
sourceDocumentLink: https://www.servicenow.com/docs/r/zurich/api-reference

 Release :

    - zurich

ft:locale :

    - en-US

ft:publication_title :

    - Zurich API Reference

ft:clusterId :

    - crapiref

bundleId :

    - crapiref

workflow :

    - Creator


---

# Controlling maximum request size

# Controlling maximum request size {#ariaid-title1}

* Release version: Zurich
* 
* Updated July 31, 2025
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read

You can specify the maximum file size allowed in a scripted REST API request
payload.
The file size limit applies when accessing any of the following variables or functions from a RESTAPIRequestBody object.

* data
* dataString
* nextEntry()
* hasNext()
{#r_ControllingMaxRequestSize__ul_p2t_ml2_ht}

Accessing these variables or functions with a request payload that exceeds the maximum size
causes the service to respond with error code 400.

The file size limit does not apply when accessing the dataStream
variable.

## Maximum request size properties

Several properties control the maximum allowed request size. Add these properties to the System Properties \[sys_properties\] table to specify a maximum request size.{#r_ControllingMaxRequestSize__table_rwj_2m2_ht__entry__3}

| Property | Default value | Description |
|-|-|-|
| glide.rest.scripted.max_inbound_content_length_mb | 10 | The maximum size, in megabytes, for a scripted REST request body that is not gzipped. |
| glide.rest.scripted.max_inbound_gzip_content_length_mb | 1 | The maximum size, in megabytes, for a scripted REST request body that is gzipped. |
| glide.rest.max_content_length | 10 | The maximum size, in megabytes, for a scripted REST request body, whether or not it is gzipped. Maximum: 25 As a result, even if glide.rest.scripted.max_inbound_content_length_mb or glide.rest.scripted.max_inbound_gzip_content_length_mb are set, the request body is limited to the value of glide.rest.max_content_length. |
[Table 1. Properties]

{#r_ControllingMaxRequestSize__table_rwj_2m2_ht}

