Doc Partner
SMS Partner
Doc Partner - EN
Doc Partner - EN
  • Welcome
  • API
    • SMS Partner
      • Credits
      • Send SMS
        • Single Send
        • Bulk Send
        • Send by Long Number
        • Survey Send
        • Cancel Scheduled SMS
        • Special Characters
      • Status & Statistics
        • Single Status
        • Bulk Status
        • Status by Message
        • Status by Tag
        • Sending Statistics
      • Contact Management
        • Add Group
        • Add Contact
        • Delete Group
        • Add Bulk Contacts
        • Edit Contact
        • Delete Contact
        • Get Group List
        • Get Contact List
        • Get Contact Details
      • Replies / Opt-outs Management
        • Stop List
        • Add Number to SMS Stop List
        • Remove Number from SMS Stop List
        • Replies Management
      • Sub-accounts
        • Activation
        • Create Sub-account
        • Delete Sub-account
        • Sub-account List
        • Manage Sub-account Credits
      • Manage Call Forwarding
      • Number Verification
        • Send a Verification
        • Format Verification
      • Contact Rental
        • Categories
        • Targeting & Calculation
        • Rental Status
        • Download File
      • RCS
    • Error Codes
Powered by GitBook

© 2025 NDA Media

On this page
  1. API
  2. SMS Partner
  3. Contact Management

Edit Contact

This request is used to update an existing contact.

URL

POST https://api.smspartner.fr/v1/contact/update

Parameters

Name
Value

apiKey

contactId

The ID of the contact to be updated

firstname

First name (max 32 characters)

lastname

Last name (max 32 characters)

date

Date in format YYYY-MM-DD. Can be used for automatic messages (e.g. birthdays)

url

URL, must start with http:// or https://

custom1

Custom field 1

custom2

Custom field 2

custom3

Custom field 3

custom4

Custom field 4

Request

{
  "url": "http://api.smspartner.fr/v1/contact/update",
  "method": "POST",
  "headers": {
    "Content-Type": "application/json"
  },
  "data": {
    "apiKey": "YOUR_API_KEY",
    "contactId": "ID CONTACT",
    "contact": {
      "phoneNumber": "+xxxxxxxxx",
      "firstname": "prénom",
      "lastname": "nom",
      "url": "",
      "date": "12-06-2020",
      "custom2": "custom2"
    }
  }
}

Response

{
  "success": true,
  "code": 200,
  "contact": {
    "phoneNumber": "+xxxxxxxx",
    "firstname": "firstname",
    "lastname": "lastname",
    "url": "",
    "date": "2020-06-12",
    "custom2": "custom2",
    "contactId": "CONTACT_ID"
  }
}

Errors

{
  "success": false,
  "code": 10,
  "message": "Invalid API key"
}

Error Codes

Response Code
Message

1

groupId is required

2

Contact information is required

10

API key is required

15

The number already exists in the group

PreviousAdd Bulk ContactsNextDelete Contact

Last updated 1 month ago

Your API key