---
title: "Save preset IP ranges group"
type: reference
method: POST
path: /rest-api/preset-ip-ranges/group/save.do
tag: "Targeting Rules"
---

# Save preset IP ranges group

`POST https://YOUR-NETWORK-DOMAIN/rest-api/preset-ip-ranges/group/save.do`

Creates a new preset IP ranges group or updates an existing one if the groupId parameter is provided. When updating, the group must exist or a 404 error is returned. The title parameter sets the display name of the group. Requires PRESET_DOMAIN_GROUP_MANAGEMENT permission. The action is recorded in the audit log.

## Form params

| Name | Type | Required | Example | Description |
|---|---|---|---|---|
| `title` | string | yes | `My Preset Group` | Display title for the preset IP ranges group |
| `groupId` | integer | no | `100` | Unique numeric ID of an existing group to update; omit to create a new group |

## Responses

- `200` — Success
- `400` — Missing required parameter
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Preset group not found
- `500` — Internal server error

## Example request

```bash
curl --request POST \
  --url 'https://YOUR-NETWORK-DOMAIN/rest-api/preset-ip-ranges/group/save.do' \
  --header 'X-Api-Key: YOUR_API_KEY' \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --data-urlencode 'title=My Preset Group' \
  --data-urlencode 'groupId=100'
```

Source: https://epom.com/ad-server/docs/api/targeting-rules/post-preset-ip-ranges-group-save