referrals

Update referral code name

Rename one of the calling user's referral codes.

patch/referral-codes/{id}

Request

  • Base URL: https://gamma-api.polymarket.com (the document declares no server; this is the origin it was published from)
  • URL: https://gamma-api.polymarket.com/referral-codes/{id}
  • Auth: one of:
    • API key in cookie polymarketsession
    • HTTP bearer

Path parameters

idstring required

Referral code id

Request body

$schemastring uri

A URL to the JSON Schema for this object.

namestring

Campaign name, 100 characters or fewer. Null clears it.

Example request

{
  "$schema": "https://example.com/schemas/ReferralCodeNamePayload.json"
}

Response

No Content

Changes

No recorded changes to this operation across all 1 revision of this API.