what is the maximum size of the response. Setbody (body) method during the use of the rest API?

ghc
Tera Contributor

At present, I want to call the rest API of servicenow with other external systems (not servicenow).Can someone tell me the maximum size of the response. Setbody (body) method during the use of the rest API ?

1件の返信1

Community Alums
適用対象外

HI ghc,

This seems to depend on the glide.rest.max_content_length property which is defaulted at 10MB, min is 1MB, max is 25MB on the target instance.

By default, the system limits the size of REST responses that are not saved as attachments to 5 MB. Direct REST responses that exceed this limit generate an error. To support larger response sizes, either save the response as an attachment or increase the response size limit with the glide.pf.rest.response_payload_max_size system property. This system property supports a maximum value of 10 MB.

Also, The link referred to: https://community.servicenow.com/community?id=community_question&sys_id=31841425db2dbfc0d82ffb243996...

find_real_file.png

Mark my answer correct & Helpful, if Applicable.

Thanks,

Sandeep