Skip to content

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.

1
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
1
curl -X PUT --header "Content-Type:application/json" --data REQUEST_DATA https://services.ownpage.fr/v1/subscribe/TRACKING_KEY
With REQUEST_DATA
1
2
3
4
5
{
    "guid": "7f138a09169b250e9dcb378140907378",
    "data_firstname" : "Jean",
    "data_lastname" : "Todt"
}
Response (example)
1
2
3
4
HTTP/1.1 200 OK
{
    "success": "Subscriber has been successfully updated."
}
1
2
3
4
5
HTTP/1.1 400 Invalid request
{
    "status": 400,
    "cause": "Could not update unknown subscriber."
}

Comments