Edit Contact

This request is used to update an existing contact.

URL

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

Parameters

Name
Value

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

Last updated