---
title: "Edit Split Payment Campaign"
method: PATCH
path: "/v1/agent-hub/campaigns/{campaign_id}"
---

# Edit Split Payment Campaign

`PATCH /v1/agent-hub/campaigns/{campaign_id}`

## Path parameters

- `campaign_id` string, required

## Headers

- `Accept` string, required
- `Content-Type` string, required

## Request body

- object
  - `name` string — Name of split payment campaign. Max 150 characters.
  - `base_charge` string — Base charge of the split payment campaign. Max value: 100.
  - `perc_charge` string — Percentage charge of the split payment campaign. Max value 20.
  - `description` string — Description of split payment campaign. Max 255 characters.
  - `notes` string — Notes of the split payment campaign. Max 500 characters.
  - `is_default` string — To set the split payment campaign as the default, send 1.
  - `accounts` string[] — Array of account IDs associated with the split payment campaign.

## Response `200`

200

- object
  - `data` object
    - `object` string
    - `id` string
    - `name` string
    - `description` string
    - `notes` string
    - `status` string
    - `base_charge` integer
    - `perc_charge` integer
    - `is_default` string
    - `created_at` string
    - `updated_at` string
    - `readable_created_at` string
    - `readable_updated_at` string
    - `account` object
      - `data` unknown[]
        - unknown
  - `meta` object
    - `include` unknown[]
      - unknown
    - `custom` unknown[]
      - unknown

## Other responses

- `422` — 422

---

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