Smartech

Update Contact

This API can be used to update the details of a user in Smartech.

The Update Contact API is same as the add contact API as calling an Add Contact on an already existing contact with correct primary key will allow the user to update any other field of the contact.

Details

URL Schema:
US IDC:
https://api.netcoresmartech.com/apiv2

Indian IDC:
https://apiin.netcoresmartech.com/apiv2

Method:
POST

Header:

Key

Value

Content-Type

application/x-www-form-urlencoded

Parameters:

Parameter

Description

Data Type

Required

Parameter Type

activity

Activity refers to the action that is being performed through the API, that is, add, delete, update, and so on.
Value here: add

String

Yes

Query Parameter

data

Data is the input which comprises the raw parameters like listname, subject, from, and so on. For example: json format data e.g. { "NAME": "Mike", "EMAIL": "[email protected]", "MOBILE":5654134, "AGE":24, "CITY":"Mumbai" }

Here EMAIL is the primary key of contact.

String

Yes

Body Parameter

apikey

You can obtain the API key from the Smartech panel. Log in to your Smartech panel and go to Admin. Enable the API Mode in Account Configuration under Advance details. Now, go to Sub Admin and click Edit on your user name. You can view your API key here.

string

Yes

Query Parameter

type

It represents the module or group the API belongs to. For example, if the API 's functionality is related to Contacts, type is 'contact'.

value here: contact

string

Yes

Query Parameter

Request:

http://api.netcoresmartech.com/apiv2?type=contact&activity=add&apikey=xxxxxxxxxxxxxxxxxxxxxxxxxxx&data=%7B%22FIRST_NAME%22%3A%22Mike%22%2C%22EMAIL%22%3A%22mike%40google.com%22%2C%22MOBILE%22%3A9999999999%2C%22CUSTOMER_ID%22%3A%2200000132%22%7D&listid=33

Response: 200 OK

{
    "requestid": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    "result": "Success"
}

Updated 4 months ago


Update Contact


This API can be used to update the details of a user in Smartech.

Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.