function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Hithesh SaicharanHithesh Saicharan 

parameter max size limit for post call in APEX callout

I want to post some data to EHR in call out. The data I am having is nearly 5000 characters of length and it cant be split up. It has to be sent in single attribute named "Description". I am not able to find the max character limit which can be send in a single attribute in APEX.
SwethaSwetha (Salesforce Developers) 
HI Hithesh,
Searching over internet but couldn't find any documentation stating the limit for max characters in a single parameter in POST call.

For POST call,the recommendation is to limit the URI to 2000 bytes, and headers to 8000 bytes. 

Reference: https://salesforce.stackexchange.com/questions/195449/what-is-the-longest-uri-that-salesforce-will-accept-through-the-rest-api/195450

Related: https://salesforce.stackexchange.com/questions/78203/restcontext-requestbody-size-limit

If this information helps, please mark the answer as best. Thank you