PUT https://restapi.actonsoftware.com/ucl/v2/segment/contacts/{accountId}
This endpoint allows you to update a contact by specifying their email address.
Only the first record matching that email address is updated with the data you provide and if no record is found a new record is added to the list.
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 |
Query | false | required | string | Specify the email address of the record. | |
async |
Query | false | optional | string |
Do you want to run the request synchronous or asynchronous? ("Y", "N") (Default=N) |
contact | Body | false | required | string |
A JSON formatted object to describe the structure of the record that is being updated. |
Response
{
"status": "success",
"message": "Record updated",
"id": "l-0002:3",
"contact_id": "l-0002:3"
}
Code Examples
cURL
curl --location --request PUT
'https://restapi.actonsoftware.com/ucl/v2/segment/contacts/{ACCOUNT_ID}?email=agus
@test.com' \
--header 'Authorization: Bearer 0ce7825a-5bcb-3d08-b316-11fe6a5a0c0d' \
--header 'Content-Type: application/json' \
--data-raw '{
"First Name": "Agusss"
}'