Skip to main content
nmathur
Staff
Staff
May 11, 2020 1:21 PM UTC

How To: Increase the API timeout value

  • Apr 16, 2026 1:33 PM UTC
  • 0 replies
  • 3110 views
  • Translate All
Description
API Request timeout value is set by default to 30 seconds. If you want to change the API request timeout value in cases where you are getting timeouts (might be for a large set of data), you can increase the API request timeout value upto a maximum of 60 seconds.
Solution

To increase the timeout value from 30 seconds to 60 seconds, do the following:

  1. Edit the /etc/php.ini file:  
    [root@cybersponse csadmin]# vi /etc/php.ini 
  2. In the /etc/php.ini file, replace the following line:
    max_execution_time = 30
    TO
    max_execution_time = 60
  3. Restart php-fpm using the following command:
    systemctl restart php-fpm


Risk and Resilience in the Age of AI. An OT Thought Leadership Summit for Houston's Critical Infrastructure Leaders. Date: Thursday, December 3, 2026. Time: 8:30 am - 1:30 pm (CT). Location: The Westin Houston, Memorial City | 945 Gessner Road, Houston, TX 77024