# EditAffiliateInput

input type

Edit-input for a Affiliate. Every field optional, at least ONE required; supplied fields REPLACE, omitted fields are preserved (no clearing semantic) — EXCEPT codes: a supplied codes list REPLACES WHOLESALE.

## Fields

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `caption` | [String](/types/#scalars) | no | The promoter name. |
| `organizationIds` | [ID](/types/#scalars) `[ID!]` | no | Wholesale replace of the canned pool. |
| `codes` | [AffiliateCodeInput](/types/AffiliateCodeInput/) `[AffiliateCodeInput!]` | no | WHOLESALE replacement — the marker MIGRATE (empty array = release all). |
| `ratePpm` | [Int](/types/#scalars) | no | The flat order-net rate (ppm). |
| `consumerId` | [ID](/types/#scalars) | no | The shopper link — live-gated at set. |
| `handle` | [String](/types/#scalars) | no | No further notes. |
| `bio` | [String](/types/#scalars) | no | No further notes. |
| `socialLinks` | [String](/types/#scalars) `[String!]` | no | Wholesale replace. |
| `audienceSize` | [Int](/types/#scalars) | no | No further notes. |
| `nicheTags` | [String](/types/#scalars) `[String!]` | no | Wholesale replace. |

## Used by

- [updateAffiliate](/reference/affiliate/updateAffiliate/)
