<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.offerit.com/index.php?action=history&amp;feed=atom&amp;title=Offerit_REST_API_Add_Global_Void_Ip</id>
		<title>Offerit REST API Add Global Void Ip - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.offerit.com/index.php?action=history&amp;feed=atom&amp;title=Offerit_REST_API_Add_Global_Void_Ip"/>
		<link rel="alternate" type="text/html" href="https://wiki.offerit.com/index.php?title=Offerit_REST_API_Add_Global_Void_Ip&amp;action=history"/>
		<updated>2026-05-04T16:21:59Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.27.5</generator>

	<entry>
		<id>https://wiki.offerit.com/index.php?title=Offerit_REST_API_Add_Global_Void_Ip&amp;diff=4086&amp;oldid=prev</id>
		<title>OfferitRob: Created page with &quot;{{Offerit Manual | show_rest_api_section = true }} == '''POST /config/add_global_void_ip''' == '''Description'''  *The  api/config/add_global_void_ip action adds a valid ip to...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.offerit.com/index.php?title=Offerit_REST_API_Add_Global_Void_Ip&amp;diff=4086&amp;oldid=prev"/>
				<updated>2022-08-01T21:57:23Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Offerit Manual | show_rest_api_section = true }} == &amp;#039;&amp;#039;&amp;#039;POST /config/add_global_void_ip&amp;#039;&amp;#039;&amp;#039; == &amp;#039;&amp;#039;&amp;#039;Description&amp;#039;&amp;#039;&amp;#039;  *The  api/config/add_global_void_ip action adds a valid ip to...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Offerit Manual&lt;br /&gt;
| show_rest_api_section = true&lt;br /&gt;
}}&lt;br /&gt;
== '''POST /config/add_global_void_ip''' ==&lt;br /&gt;
'''Description''' &lt;br /&gt;
*The  api/config/add_global_void_ip action adds a valid ip to the Config-&amp;gt;Security-&amp;gt;Global Void Ip list&lt;br /&gt;
&lt;br /&gt;
'''Resource URL'''&lt;br /&gt;
*&amp;lt;nowiki&amp;gt;https://domain/api/config/add_global_void_ip&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
*Replace domain with the Offerit domain&lt;br /&gt;
&lt;br /&gt;
'''[[Offerit_REST_API_Overview#Allowed_HTTP_Request_Methods|Request Method''']]&lt;br /&gt;
*POST&lt;br /&gt;
&lt;br /&gt;
'''Response Format'''&lt;br /&gt;
*JSON&lt;br /&gt;
&lt;br /&gt;
'''[[Offerit_REST_API_Overview#Authentication|Authentication]]'''&lt;br /&gt;
*HTTP headers&lt;br /&gt;
&lt;br /&gt;
== '''Parameters''' ==&lt;br /&gt;
'''Parameters must be sent with the request body. The examples below show the parameters sent as x-www-form-urlencoded'''&lt;br /&gt;
&lt;br /&gt;
*ip&lt;br /&gt;
**'''''type: string'''''&lt;br /&gt;
**'''required'''&lt;br /&gt;
**ipv4 or ipv6 format&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== '''Example Request''' ==&lt;br /&gt;
&lt;br /&gt;
'''POST'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;https://domain/api/config/add_global_void_ip&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Response: &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
    &amp;quot;result&amp;quot;: &amp;quot;success&amp;quot;,&lt;br /&gt;
    &amp;quot;data&amp;quot;: &amp;quot;Ip added / Ip already in list&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
{&lt;br /&gt;
    &amp;quot;result&amp;quot;: &amp;quot;error&amp;quot;,&lt;br /&gt;
    &amp;quot;data&amp;quot;: &amp;quot;Invalid ip&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== '''Example Code''' ==&lt;br /&gt;
&lt;br /&gt;
'''PHP'''&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
$curl = curl_init();&lt;br /&gt;
&lt;br /&gt;
$data = array(&lt;br /&gt;
    'ip' =&amp;gt; '73.279.112.30',&lt;br /&gt;
);&lt;br /&gt;
&lt;br /&gt;
$url = 'https://domain/api/config/add_global_void_ip';&lt;br /&gt;
&lt;br /&gt;
$headers = array(&lt;br /&gt;
    'api-key: 44b5498dbcb481a0d00b404c0169af62',&lt;br /&gt;
    'api-username: offerit_admin'&lt;br /&gt;
);&lt;br /&gt;
curl_setopt($curl, CURLOPT_CUSTOMREQUEST, &amp;quot;POST&amp;quot;);&lt;br /&gt;
curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);&lt;br /&gt;
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);&lt;br /&gt;
curl_setopt($curl, CURLOPT_POSTFIELDS, http_build_query($data));&lt;br /&gt;
curl_setopt($curl, CURLOPT_URL, $url);&lt;br /&gt;
&lt;br /&gt;
$resp = curl_exec($curl);&lt;br /&gt;
//dumps an associative array representation of the json&lt;br /&gt;
var_dump(json_decode($resp, true));&lt;br /&gt;
// Close request to clear up some resources&lt;br /&gt;
curl_close($curl);&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Offerit API Articles]]&lt;/div&gt;</summary>
		<author><name>OfferitRob</name></author>	</entry>

	</feed>