← Documentation home
PATCH/hyax-api/v1/people/:id

Update person

Base URL: https://platform.hyax.com · Replace YOUR_API_KEY with your team API key.

Request body

FieldRequiredDescription
nameNoDisplay name
emailNoEmail address (trimmed, lowercased)
categoryNo`LEAD` | `CUSTOMER` | `CANCELLED` (CANCELLED unsubscribes)
tagsNoArray of tag strings (replaces all tags)
phoneNoPhone number
address1NoStreet address line 1
address2NoStreet address line 2
cityNoCity
stateNoState / province
zipCodeNoPostal code
countryNoCountry

Request examples

Same request in cURL, Node.js (fetch), and PHP (ext-curl).

curl -X PATCH 'https://platform.hyax.com/hyax-api/v1/people/clx_example_id' \
  -H 'Authorization: Bearer YOUR_API_KEY'

Example response

Shape varies by data; values are illustrative.

{
  "success": true,
  "data": {
    "id": "clx…",
    "email": "[email protected]",
    "name": "Ada Lovelace",
    "category": "LEAD",
    "tags": ["newsletter", "vip"],
    "updatedAt": "2025-01-15T12:00:00.000Z"
  }
}