Skip to main content
PUT
/
contacts
/
{id}
Update contact
curl --request PUT \
  --url https://api-message.nativehub.live/api/v1/contacts/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "Alice Johnson",
  "email": "[email protected]",
  "tags": {
    "segment": "vip"
  }
}
'
{
  "id": "c9d0e1f2-a3b4-5678-cd90-123456789012",
  "tenant_id": "c3d4e5f6-a7b8-9012-cdef-123456789012",
  "name": "Alice Johnson",
  "phone": "+8801712345678",
  "email": "[email protected]",
  "tags": {
    "segment": "premium",
    "region": "dhaka"
  },
  "created_at": "2026-02-01T09:00:00Z",
  "updated_at": "2026-02-10T11:30:00Z"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string<uuid>
required

Contact ID

Body

application/json
name
string
phone
string
email
string<email>
tags
object

Response

Contact updated successfully

id
string<uuid>
tenant_id
string<uuid>
name
string
phone
string
email
string<email>
tags
object
created_at
string<date-time>
updated_at
string<date-time>