WhatsApp
  1. Contact Management
  • Contact Management
    • Create a New Contact
      POST
    • List Contacts
      GET
    • Get Contact Details
      GET
    • Update Contact Information
      PUT
    • Delete Contact
      DELETE
  • Status Management
    • Create Status
      POST
    • List Statuses
      GET
    • Get Status Details
      GET
    • Update Status
      PUT
    • Delete Status
      DELETE
  • Source Management
    • Create Source
      POST
    • List Sources
      GET
    • Get Source Details
      GET
    • Update Source
      PUT
    • Delete Source
      DELETE
  • Group Management
    • List Groups
      GET
    • Create Group
      POST
    • Get Groups Details
      GET
    • Update Groups
      PUT
    • Delete Group
      DELETE
  • Template Management
    • List Templates
      GET
    • Get Templates Details
      GET
  • Template Bot Management
    • List TemplateBot
      GET
    • Get TemplateBot Details
      GET
  • Message Bot Management
    • List Messagebots
    • Get Messagebots Details
  • Send Messages
    • Send Simple Message
    • Send Template Message
    • Send Media Message to Contact
WhatsApp
  1. Contact Management

Update Contact Information

PUT
/api/v1/{subdomain}/contacts/{id}
Modify an existing contact's details with full validation and group management.
This endpoint allows you to update any contact field while maintaining data integrity.
Key Features:
Update any contact field individually or in bulk
Automatic validation with unique email/phone checks
Group assignment with auto-creation
Contact type conversion (lead to customer)
Maintains audit trail with timestamps
Business Rules:
Email must remain unique within the tenant (if changed)
Phone must remain unique within the tenant (if changed)
Groups will be auto-created if they don't exist
Original contact ID and tenant cannot be changed

Request

Authorization
Path Params

Body Params application/jsonRequired

Examples

Responses

🟢200
application/json
contact updated successfully
Body

🟠400
🟠401
🟠404
🟠422
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT 'https://whatsapp.qtap.chat/api/v1//contacts/' \
--header 'Content-Type: application/json' \
--data-raw '{
    "firstname": "John",
    "lastname": "Doe",
    "company": "Corbital Technologies LLP",
    "type": "customer",
    "email": "john.doe@acmecorp.com",
    "phone": "+919925119284",
    "source_id": 2,
    "status_id": 3,
    "description": "Updated client status after successful meeting, moved to active customer",
    "country_id": 101,
    "groups": "Active Customers,Premium Support,Monthly Newsletter"
}'
Response Response Example
200 - Example 1
{
    "status": "success",
    "message": "Contact updated successfully",
    "data": {
        "id": 25,
        "tenant_id": 13,
        "firstname": "John",
        "lastname": "Doe",
        "company": "Corbital Technologies LLP",
        "type": "customer",
        "email": "john.doe@acmecorp.com",
        "phone": "+919925119284",
        "source_id": 2,
        "status_id": 3,
        "description": "Updated client status after successful meeting, moved to active customer",
        "country_id": 101,
        "group_id": [
            1,
            2,
            3
        ],
        "addedfrom": 15,
        "created_at": "2024-02-08T14:30:25.000000Z",
        "updated_at": "2024-02-08T16:45:30.000000Z"
    }
}
Previous
Get Contact Details
Next
Delete Contact
Built with