DELETE - Allowed IPs API

Purpose

This API is used to delete an Allowed IP range for your organization.

OAuth Scope

Use the scope ZohoMail.organization.accounts.ALL (or) ZohoMail.organization.accounts.DELETE to generate the Authtoken.

ALL - Full access to all allowed APIs

DELETE - Delete Allowed IPs range

Request URL

https://mail.zoho.com/api/organization/<zoid>/allowedIps

Path Parameters

Request Parameters

  • fromIpRangestring, mandatory
    • The fromIpRange denotes the start of the IP address range that's allowed for your users to access their accounts.
  • toIpRangestring, mandatory
    • The toIpRange denotes the end of the IP address range that's allowed for your users to access their accounts.
  • roleIdint, mandatory
    • The roleId helps you to assign the allowed IP range to different users in your organization.
    • The allowed values are:
      • - The allowed IPs will be assigned to the Users in the organization.
      • - The allowed IPs will be assigned to the Admins of the organization.
      • 2 - The allowed IPs will be assigned to the Super Admin of the organization.
      • -1 - The allowed IPs will be assigned to all the members of the organization.
  • ipIdlong, optional
    • The ipId denotes the ID assigned to the IP ranges added to certain users in the organization and can be fetched using the GET Allowed IPs API.

Response Codes

Refer here for the response codes and their meaning.

Sample Request URL

Copiedhttps://mail.zoho.com/api/organization/12345678/allowedIps

Sample Body Input

Copied{
  "allowedIps":[
     {
        "fromIpRange":"0.0.0.0",
        "toIpRange":"255.255.255.255",
        "roleId":0,
        "ipId":799551071
     }
  ]
}

Sample Response

Copied{
  "status":{
     "code":200,
     "description":"success"
  },
  "data":{
     "status":[
        {
           "ipId":799551071,
           "status":true
        }
     ]
  }
}