Skip to main content
PUT
/
api
/
v1
/
contacts
/
{uuid}
Update a contact
curl --request PUT \
  --url https://{subdomain}.mindhunters.ai/api/v1/contacts/{uuid} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "John",
  "surname": "Doe",
  "email": "john.doe@example.com",
  "phone_number": "+12345678901",
  "number_type": "mobile",
  "country_code": "US",
  "timezone": "America/New_York",
  "primary_language": "en",
  "preferred_contact_channel": "email",
  "preferred_contact_time": "Morning",
  "status": "Active",
  "custom_field_1": "Gold",
  "custom_field_2": "ORD-12345"
}'
{
  "success": true,
  "message": "Contact updated successfully",
  "data": {
    "uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "name": "<string>",
    "surname": "<string>",
    "email": "<string>",
    "phone_number": "<string>",
    "number_type": "<string>",
    "country_code": "<string>",
    "timezone": "<string>",
    "primary_language": "<string>",
    "preferred_contact_channel": "<string>",
    "preferred_contact_time": "<string>",
    "status": "<string>",
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z",
    "custom_field_1": "<string>",
    "custom_field_2": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Use a Bearer token to access these API endpoints. Example: "Bearer {your-token}"

Path Parameters

uuid
string<uuid>
required

UUID of the contact to update

Body

application/json
name
string
Example:

"John"

surname
string
Example:

"Doe"

email
string<email>
Example:

"john.doe@example.com"

phone_number
string
Example:

"+12345678901"

number_type
string | null
Example:

"mobile"

country_code
string
Example:

"US"

timezone
string
Example:

"America/New_York"

primary_language
string
Example:

"en"

preferred_contact_channel
string
Example:

"email"

preferred_contact_time
string
Example:

"Morning"

status
enum<string>
Available options:
Active,
Inactive
Example:

"Active"

custom_field_1
string | null
Example:

"Gold"

custom_field_2
string | null
Example:

"ORD-12345"

Response

Success

success
boolean
Example:

true

message
string
Example:

"Contact updated successfully"

data
object