Update a guest data extension (legacy)
Important
A newer version of this REST API (v2.1) is available. If you're new to the Guest REST API, use the new version. Alternatively, if you're already using the old version, read about the differences between v2 and v2.1 so you can upgrade.
POST /v2/guests/<guestRef>/extext/<dataExtensionRef>
Updates a guest data extension for a guest. An update replaces all existing attributes.
RequestResponse
curl -X POST '<baseURL>/v2/guests/f7aabbca-1c1b-4fc2-be72-3e16294a4f03/extext/09bfc8cc-3815-5b77-b75a-d3cc6a867c1a' \
-u '<username>:<password>' \
-H 'Accept: application/json' \
--data-raw '
{
"key": "default",
"membership": "deactivated"
}'
RequestResponse
{
"href": "<baseURL>/v2/guests/f7aabbca-1c1b-4fc2-be72-3e16294a4f03/extext/09bfc8cc-3815-5b77-b75a-d3cc6a867c1a",
"ref": "09bfc8cc-3815-5b77-b75a-d3cc6a867c1a",
"key": "default",
"createdAt": "2024-12-16T07:53:19.253Z",
"modifiedAt": "2024-12-16T07:53:41.572Z",
"membership": "deactivated",
"guest": {
"href": "<baseURL>/v2/guests/f7aabbca-1c1b-4fc2-be72-3e16294a4f03"
}
}