API - v1.0 - update-contact
Description
- Updates an existing contact record.
HTTP Binding
| URL: |
http://api.sendgm.com/v1.0/method/update-contact |
| Method: |
POST |
Parameters
| Name
| Description
| Required
|
| ApiKey |
Valid API Key. |
Yes |
| Contact.ContactId |
Valid Contact ID to update. |
Yes |
| Contact.ContactTypeId |
1 for email contacts, 2 for phone contacts, and 3 for SMS contacts. |
Only if changing |
| Contact.ContactValue |
If ContactTypeId is 1 then ContactValue must be an email address; otherwise, ContactValue must be a phone number. |
Only if changing |
| Contact.FirstName |
First name of contact. |
Only if changing |
| Contact.LastName |
Last name of contact. |
Only if changing |
| Contact.Nick |
Nick of contact. |
Only if changing |
| Contact.Verified |
0 if unverified and 1 if verified. Messages are only delivered to verified contacts. |
Only if changing |
Example
Your code should emulate the posting of this form to update a contact...