POST https://restapi.actonsoftware.com/ucl/v2/segment/contacts/{accountId}
This endpoint allows you to add an individual contact to the All Contacts.
Parameters
Name | Parameter Type |
Allow Multiple |
Required/ Optional |
Data Type | Description |
---|---|---|---|---|---|
authorization | header | false | required | string | Insert your generated access token. (Bearer {access token}) |
accountId | Path | false | required | number | Account ID where query needs to be done |
returncontact | Query | false | optional | string |
Would you like the data of the record added in the response body? ("Y", "N") (Default=N) |
contact |
Body | false | required | string |
A JSON formatted object to describe the structure of the record that is being added. |
Response
{
"E-mail Address" : "john.doe@act-on.com",
"First Name" : "John",
"Last Name" : "Doe"
}
Code Examples
cURL
curl --location --request POST
'https://restapi.actonsoftware.com/ucl/v2/segment/contacts/{ACCOUNT_ID}?returnconta
ct=Y' \
--header 'Authorization: Bearer 0ce7825a-5bcb-3d08-b316-11fe6a5a0c0d' \
--header 'Content-Type: application/json' \
--data-raw '{
"Email" : "agus@test.com",
"First Name" : "Agustin",
"Last Name" : "Doe"
}'