Updating profiles with APIs updating-profiles-api
Updating profiles is performed with a PATCH request.
https://mc.adobe.io/<ORGANIZATION>/campaign/<apiName>/<resourceName>/<PKEY>
-
The first step is to retrieve the profile.
-
In a second request, perform a PATCH request on the profile with the completed information in the payload.
-
To check if the PATCH request has updated the profile, we can perform a final GET request.
Sample request
Sample GET request to retrieve a profile.
-X GET https://mc.adobe.io/<ORGANIZATION>/campaign/profileAndServices/profile/<PKEY>\
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <ACCESS_TOKEN>' \
-H 'Cache-Control: no-cache' \
-H 'X-Api-Key: <API_KEY>'
Response to the request.
{
"content": [
{
"PKey": "<PKEY>",
"firstName": "Amy",
"lastName":"Dakota",
"birthDate": "1980-10-24",
...
}
]
}