---
title: "Update invite code"
method: POST
path: "/admin/invite/codes/update"
tags: ["Admin"]
---

# Update invite code

`POST /admin/invite/codes/update`

## Request

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

Update editable fields of an invite code. Only fields that are present in the request are updated. For description and created_by, an empty string clears the value; owner_address cannot be cleared.

## Request body

- ApiUpdateInviteCodeRequest
  - `code` string: Invite code to update (case-insensitive). Required.
  - `owner_address` string: New owner address (hex with 0x prefix). Omit to leave unchanged. Cannot be cleared.
  - `description` string: New description. Omit to leave unchanged. Empty string clears the field.
  - `created_by` string: Name of the admin operator who created the code. Omit to leave unchanged. Empty string clears the field.

## Response `200`

A successful response.

- ApiUpdateInviteCodeResponse
  - `code` ApiInviteCodeItem
    - `code` string
    - `owner_address` string
    - `source` string
    - `status` string
    - `redeemed_by` string
    - `redeemed_at` string, int64
    - `description` string
    - `created_at` string, int64
    - `updated_at` string, int64
    - `created_by` 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/invite/codes/update/post.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)
