Skip to main content
PUT
/
v1
/
partners
/
{id}
Update partner
curl --request PUT \
  --url https://api.example.com/v1/partners/{id}
{
  "data": {
    "email": "[email protected]",
    "created_at": "2025-04-30T16:44:13.000000Z",
    "updated_at": "2025-04-30T18:02:45.000000Z",
    "name": "James",
    "id": "partner_123",
    "surname": "Wilson",
    "tos": false,
    "approved": true,
    "status": "active",
    "custom_fields": [],
    "referrals_count": 0,
    "tags": [
      {
        "value": "premium"
      }
    ],
    "referral_link": "https://yourcompany.com?aff=ref_123",
    "referral_links": [
      "https://yourcompany.com?aff=ref_123"
    ]
  },
  "status": 1
}

Endpoint

PUT https://api.partnero.com/v1/partners/{id}

Parameters

You can identify the partner either by path parameter or request body:
ParameterLocationTypeDescription
idpathstringPartner’s unique ID in the URL
emailbodystringPartner’s email (alternative to path ID)
keybodystringPartner’s referral key (alternative to path ID)

Request body

ParameterTypeRequiredDescription
update.emailstringNoNew email address (must be unique)
update.namestringNoPartner’s first name
update.surnamestringNoPartner’s last name
update.passwordstringNoNew password (min 8 chars, 1 lowercase, 1 uppercase, 1 number)
update.keystringNoPartner’s default referral link key
update.tagsarrayNoTags to associate. Empty array [] removes all tags. null skips update

Request

curl --location --request PUT 'https://api.partnero.com/v1/partners/partner_123' \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
    "update": {
      "name": "James",
      "surname": "Wilson",
      "email": "[email protected]",
      "tags": ["premium"]
    }
  }'

Response

{
  "data": {
    "email": "[email protected]",
    "created_at": "2025-04-30T16:44:13.000000Z",
    "updated_at": "2025-04-30T18:02:45.000000Z",
    "name": "James",
    "id": "partner_123",
    "surname": "Wilson",
    "tos": false,
    "approved": true,
    "status": "active",
    "custom_fields": [],
    "referrals_count": 0,
    "tags": [
      {
        "value": "premium"
      }
    ],
    "referral_link": "https://yourcompany.com?aff=ref_123",
    "referral_links": [
      "https://yourcompany.com?aff=ref_123"
    ]
  },
  "status": 1
}