# Create a new IP scope Creates a new IP scope for the customer. Supports range type (start-end IP) or subnet type (network address + mask). ## Endpoint `POST /dcapi/som/ip-scopes` ## Request ### Request URL ```text https://{server-hostname}:8383/dcapi/som/ip-scopes ``` ### Scope ```text SOM.CREATE ``` ### Header ```text Authorization: d92d4xxxxxxxxxxxxx15f52 ``` ### Request Parameters #### Request Headers | Name | Type | Required | Value | |---|---|---|---| | Content-Type | string | Mandatory | `application/ipScopeDetail.v1+json` | | Accept | string | Mandatory | `application/ipScopeAddedStatus.v1+json` | #### Request Body `application/json` | Name | Type | Required | Description | |---|---|---|---| | remoteOfficeID | string | Optional | Unique Identifier of the remote office this IP scope will assigned to. Fetch `resource_id` from [Get Remote Offices](https://www.manageengine.com/products/desktop-central/help/api/onpremise/remote-offices-getremoteoffices.html) API. | | ipScopeType | string | Optional | Type of IP scope definition. Allowed values: `RANGE` (start-to-end IP address range) or `SUBNET` (network address with subnet mask). | | subnetClass | string | Optional | Indicates the subnet class classification. Permitted values: A, B, or C. Required only when `ipScopeType` is `SUBNET`. | | networkAddress | string | Optional | The network address of the subnet (for example, `<ip_address_1>`). This field is required when `ipScopeType` is set to `SUBNET`. | | subnetMask | string | Optional | Subnet mask for the network (for example, `<ip_address_2>`). Required only when `ipScopeType` is `SUBNET`. | | startIPAddress | string | Optional | Specifies the starting IP address of the range (for example, `<ip_address_3>`). Required only when `ipScopeType` is `RANGE`. | | endIPAddress | string | Optional | Specifies the ending IP address of the range (for example, `<ip_address_4>`). Required only when `ipScopeType` is `RANGE`. | | description | string | Optional | Optional administrator-provided description for the IP scope (max 250 characters). | ## Sample Request ```curl curl --request POST \ --url https://appdomain/dcapi/som/ip-scopes \ --header 'Accept: application/ipScopeAddedStatus.v1+json' \ --header 'Authorization: d92d4xxxxxxxxxxxxx15f52' \ --header 'Content-Type: application/ipScopeDetail.v1+json' \ --data '{"description":"HQ Network Range","remoteOfficeID":"101","ipScopeType":"RANGE","startIPAddress":"192.168.1.1","endIPAddress":"192.168.1.254"}' ``` ### Sample Request Body #### Add IP scope with range type ```json { "description": "HQ Network Range", "remoteOfficeID": "101", "ipScopeType": "RANGE", "startIPAddress": "192.168.1.1", "endIPAddress": "192.168.1.254" } ``` #### Add IP scope with subnet type ```json { "subnetClass": "C", "description": "Branch Office Subnet", "remoteOfficeID": "102", "ipScopeType": "SUBNET", "subnetMask": "255.255.255.0", "networkAddress": "10.0.1.0" } ``` ## Response Parameters ### HTTP Code 200 Response body: `application/json` | Name | Type | Description | |---|---|---| | status | boolean | Indicates whether the IP scope operation (create, update, or delete) completed successfully. | | message | string | Descriptive message providing details about the operation outcome or the reason for failure. | ### HTTP Code 403 Response body: `application/json` | Name | Type | Description | |---|---|---| | errorCode | long | Forbidden error code returned when the authenticated user does not have the required uem-roles (for example, `DataEncryption_Admin` or `DataEncryptionRecoveryKey_Admin`). | | errorMsg | string | Message indicating insufficient privileges to access this resource. | ### HTTP Code 404 Response body: `application/json` | Name | Type | Description | |---|---|---| | statusCode | string | HTTP status code (`404`). | | errorCode | string | Error code identifying the resource that was not found. | | message | string | Error message describing the missing resource. | ### HTTP Code 412 Response body: `application/json` | Name | Type | Description | |---|---|---| | statusCode | string | HTTP status code (`412`). | | errorCode | string | Precondition failed error code identifying the business logic violation. | | message | string | Error message describing the precondition failed while processing request. | ## Possible Response Codes - `200` HTTP code - `403` HTTP code - `404` HTTP code - `412` HTTP code ## Sample Responses ### HTTP 200 #### IP scope created ```json { "message": "success", "status": true } ``` ### HTTP 403 #### Branch office not accessible by user ```json { "errorCode": "20011", "message": "Forbidden Access", "statusCode": 403 } ``` ### HTTP 404 #### Remote office not found for given remoteOfficeID ```json { "errorCode": "30028", "message": "Remote office not found", "statusCode": 404 } ``` ### HTTP 412 #### Required IP scope parameters are missing ```json { "errorCode": "30022", "message": "Required IP scope parameters are missing", "statusCode": 412 } ``` #### IP scope with same range already exists ```json { "errorCode": "30023", "message": "An IP scope with the same range already exists", "statusCode": 412 } ``` #### Invalid IP range or subnet mask ```json { "errorCode": "30086", "message": "Invalid IP range or subnet mask parameters", "statusCode": 412 } ``` ## Rate Limits ![](https://www.zohowebstatic.com/sites/zweb/images/people/ico-help.png) **Duration:** 1 minute | **Threshold:** 30 | **Lock period:** 5 minutes Duration - Time window for the threshold. Threshold - Number of API calls allowed within the specified duration. Lock Period - Wait time before consecutive API requests.