---
title: "Add preset app package to group"
type: reference
method: POST
path: /rest-api/preset-app-package/add.do
tag: "Targeting Rules"
---

# Add preset app package to group

`POST https://YOUR-NETWORK-DOMAIN/rest-api/preset-app-package/add.do`

Adds a single application package identifier to the specified preset group. The package value is validated and must be a valid identifier (e.g., com.example.app). The group must exist or a 404 error is returned. Returns the created application package object as JSON. Requires PRESET_APP_PACKAGES_GROUP_MANAGEMENT permission. The action is recorded in the audit log.

## Form params

| Name | Type | Required | Example | Description |
|---|---|---|---|---|
| `groupId` | integer | yes | `100` | Unique numeric ID of the preset application package group to add the package to |
| `applicationPackage` | string | yes | `com.example.app` | Application package identifier to add (e.g., com.example.app) |

## 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-app-package/add.do' \
  --header 'X-Api-Key: YOUR_API_KEY' \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --data-urlencode 'groupId=100' \
  --data-urlencode 'applicationPackage=com.example.app'
```

Source: https://epom.com/ad-server/docs/api/targeting-rules/post-preset-app-package-add