Update subscriber data
You can update the data of a subscriber who has confirmed its subscription from our double opt-in mechanism.
You need to have your Ownpage tracking key
and the guid
of the subscriber. If you have any question please contact us.
| PUT https://services.ownpage.fr/v1/subscribe/TRACKING_KEY
|
Accepted parameters for a subscriber:
- guid : (mandatory) the user's guid
- data_* : you can add new or update existing additional data to your subscribers using parameters prefixed by
data_
. Example : data_firstname
Example
Request
| curl -X PUT --header "Content-Type:application/json" --data REQUEST_DATA https://services.ownpage.fr/v1/subscribe/TRACKING_KEY
|
With REQUEST_DATA
| {
"guid": "7f138a09169b250e9dcb378140907378",
"data_firstname" : "Jean",
"data_lastname" : "Todt"
}
|
Response (example)
| HTTP/1.1 200 OK
{
"success": "Subscriber has been successfully updated."
}
|
| HTTP/1.1 400 Invalid request
{
"status": 400,
"cause": "Could not update unknown subscriber."
}
|