---
title: "Update Affiliate"
method: PUT
path: "/programs/{programCode}/affiliates/{affiliateIdentifier}"
tags: ["Affiliate"]
---

# Update Affiliate

`PUT /programs/{programCode}/affiliates/{affiliateIdentifier}`

Updates an existing affiliate for the specified program.

## Path parameters

- `programCode` string, required
- `affiliateIdentifier` string, required

## Headers

- `X-GD-RequestId` string, required

## Request body

- UpdateAffiliateRequest — Represents a request to update affiliate information. Contains affiliate details such as name, address, city, state, and zip code. Inherits standard request metadata from Gd.Bos.DataTransfer.Request.RequestBase.
  - `affiliateName` string, nullable — The name of the affiliate to update.
  - `addressLine1` string, nullable — The first line of the affiliate's address.
  - `addressLine2` string, nullable — The second line of the affiliate's address.
  - `city` string, nullable — The city where the affiliate is located.
  - `state` string, nullable — The state where the affiliate is located.
  - `zipCode` string, nullable — The zip code of the affiliate's address.

## Response `200`

OK

- UpdateAffiliateResponse — Represents the response returned after updating an affiliate. Inherits standard response metadata and details from Gd.Bos.DataTransfer.Response.ResponseBase. Used to convey the outcome of an affiliate update operation, including status codes and error details.
  - `responseDetails` ResponseDetail[], nullable — Required: A list of response details providing status codes, descriptions, and additional information about the result of the operation.
    - `code` integer — The primary status or error code for the response (e.g., 200 for success, 400 for validation error).
    - `subCode` integer, nullable — An optional subcode providing more granular detail about the response or error.
    - `description` string, nullable — A human-readable description of the response, error, or status.
    - `url` string, nullable — A URL linking to documentation or a web page with more information about the response code.

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `500` — Internal Server Error
- `503` — Service Unavailable

---

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