---
title: "move_contacts_between_groups"
method: POST
path: "/move_contacts_between_groups"
tags: ["contacts_between_groups"]
---

# move_contacts_between_groups

`POST /move_contacts_between_groups`

## Request

- Base URL: `https://app.podmule.com/api/v1`
- URL: `https://app.podmule.com/api/v1/move_contacts_between_groups`
- Auth: HTTP bearer

Atomically move a set of contacts from one group to another. For "move from X to Y" workflows: PREFER this over add_contact_to_group + remove_contact_from_group pairs — one capability call expresses the user intent, the saved workflow gets a single composite step instead of 2N primitives, and the agent can't accidentally do half the operation. Idempotent: already_in_target and not_in_source counters are returned for resumed runs. For "copy without removing", use add_contact_to_group on its own; for "remove without moving", use remove_contact_from_group.

## Headers

- `Idempotency-Key` string
- `X-PodMule-Dry-Run` 'true' | 'false'

## Request body

- unknown

## Response `200`

Capability output wrapped in `{ data }`.

- object
  - `data` unknown, required

## Other responses

- `400`: Invalid input — Zod validation failed.
- `401`: Missing, malformed, or audience-mismatched bearer token.
- `403`: Token is valid but lacks the required scope.
- `404`: Capability not registered, or referenced resource not found.
- `409`: IDEMPOTENCY_KEY_REUSED — same Idempotency-Key was used previously with a different request body.
- `429`: Rate limit exceeded. Retry after the period in `Retry-After`.
- `500`: Internal error.

---

[API](https://skmtc.dev/podmule/apis/podmule-api.md) · [All operations](https://skmtc.dev/podmule/apis/podmule-api/llms.txt) · [OpenAPI document](https://skmtc.dev/podmule/apis/podmule-api/revisions/844ae61495fa?raw)
