---
title: "Add Accounts To Account Group"
method: POST
path: "/pws/account-groups/{id}/accounts"
tags: ["Account Groups"]
---

# Add Accounts To Account Group

`POST /pws/account-groups/{id}/accounts`

Add accounts to an account group. The method is idempotent.

## Path parameters

- `id` string, required

## Headers

- `Client-Id` integer, required
- `Api-Call-Unique-Identifier` string, required

## Request body

- AddAccountsRuleGroupModel — Request to add accounts to an account group
  - `accounts` integer[], required — Account list

## Response `200`

Successful Response

- AddRuleGroupResponseModel
  - `header` ResponseHeader
    - `error_id` integer — Error Id
    - `error_desc` string — Error Message
  - `body` AddRuleGroupsResponseBody

## Other responses

- `400` — Invalid request (missing headers, too many accounts, etc)
- `404` — If the account or account group doesn’t exist
- `500` — Internal error

---

[API](https://skmtc.net/paymentology/apis/payapi-docs.md) · [All operations](https://skmtc.net/paymentology/apis/payapi-docs/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/paymentology/payapi-docs/revisions/a675891b0365/schema)
