---
title: "Assign child accounts to a profile"
method: PATCH
path: "/api/ai-customizations/v1/profiles/{id}/accounts"
tags: ["AI Customization Profiles"]
---

# Assign child accounts to a profile

`PATCH /api/ai-customizations/v1/profiles/{id}/accounts`

## Request

- Base URL: `https://agency-partner-hub-web.global-aws-use1-p.app-us1.com`
- URL: `https://agency-partner-hub-web.global-aws-use1-p.app-us1.com/api/ai-customizations/v1/profiles/{id}/accounts`
- Auth: one of:
  - API key in header `api-key`
  - HTTP bearer

## Path parameters

- `id` integer, required

## Request body

- union: You cannot provide non-empty accountIds and set assignToAllAccounts to true at the same time.
  - object
    - `account_ids` integer[], required: List of account IDs to assign
    - `reassign` boolean
    - `assign_to_all_accounts` boolean
  - object
    - `account_ids` integer[]: List of account IDs to assign
    - `reassign` boolean
    - `assign_to_all_accounts` boolean, required

## Response `204`

Accounts successfully assigned to profile

## Other responses

- `400`: Bad Request
- `401`: Authorization error
- `403`: One or more accounts are invalid or do not belong to this reseller
- `404`: Not Found
- `422`: Unprocessable Content

---

[API](https://skmtc.dev/activecampaign/apis/partners-api.md) - [All operations](https://skmtc.dev/activecampaign/apis/partners-api/llms.txt) - [OpenAPI document](https://skmtc.dev/activecampaign/apis/partners-api/revisions/846abb7d30bd?raw)
