user-penEdit 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

Errors

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