---
title: "Update affiliate"
method: PATCH
path: "/admin/affiliates/{address}"
tags: ["Admin"]
---

# Update affiliate

`PATCH /admin/affiliates/{address}`

## Request

- Base URL: `https://api.testnet.rise.trade`
- URL: `https://api.testnet.rise.trade/admin/affiliates/{address}`
- Auth: none required
- TypeScript: <https://skmtc.dev/rise/apis/risex-rest-api/docs/admin/affiliates/:address/patch.ts> (a function with typed inputs; its response is checked against the schema)

Edit an affiliate's name and/or tier (internal). A tier change writes an audit-trail row to affiliate_tier_history with source="ADMIN".

## Path parameters

- `address` string, required

## Request body

- AffiliateServiceUpdateAffiliateBody
  - `name` string
  - `tier_id` integer

## Response `200`

A successful response.

- ApiUpdateAffiliateResponse
  - `affiliate` ApiAffiliateAdminDto: AffiliateAdminDto is one affiliates row as seen by the admin listing — address as "0x"-prefixed hex, unlike the internal []byte storage.
    - `address` string
    - `name` string
    - `tier_id` integer
    - `qualified` boolean
    - `rolling_30d_volume` string
    - `updated_at` string
    - `below_tier_since` string: RFC3339 UTC; set when the daily job has frozen this affiliate below their current tier instead of auto-downgrading (unset = not flagged).
    - `blocked_at` string: RFC3339 UTC; set when an admin has blocked this affiliate (unset = not blocked).
    - `blocked_reason` string

## Other responses

- `default`: An unexpected error response.

## Changes

- **2026-11-03** `98eabcd6a6ad`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/rise/apis/risex-rest-api/changes/admin/affiliates/:address/patch.md)

---

[API](https://skmtc.dev/rise/apis/risex-rest-api.md) - [All operations](https://skmtc.dev/rise/apis/risex-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/rise/apis/risex-rest-api/revisions/98eabcd6a6ad?raw)
