Skip to main content

updateSubscriber

This action allows you to update a subscriber.

info

The API key must have access rights to subscribers_write.

Request​

NameTypeDescription
apikeyRequiredstringAPI public key
signatureRequiredstringSignature of the request.
expirestimestampUNIX timestamp for request expiration (GMT)
outputstringFormat of the response. Either XML (default), JSON or PHP
subscription_idRequiredintegerID of the folder
loginRequiredstringSubscriber login (must be unique in a folder)
new_loginstringNew subscriber login (must be unique in a folder)
passwordstringNew subscriber password
lastnamestringSubscriber last name
firstnamestringSubscriber first name
emailstringSubscriber e-mail
languagestringSubscriber language. Either EN (default), FR, ES, DE, IT, PT, RU
full_accessbooleanSubscriber has access to all subscriber enabled private publications of the subscription. Either 0 ((disabled)) or 1 ((enabled))
is_activebooleanSubscriber activation status. Either 0 ((inactive)) or 1 ((active))
extrasstringFree field up to 255 characters

Response​

This method returns a Subscriber.

NameTypeDescription
AccountIDintegerSubscriber's owner account ID (should be your account ID)
SubscriptionIDintegerSubscriber's folder ID
LastNamestringLast name of the subscriber
FirstNamestringFirst name of the subscriber
EmailstringEmail address of the subscriber
LoginstringLogin of the subscriber
PasswordstringPassword of the subscriber
IsActivebooleanActivation status of the subscriber. Either "1" ((activated)), "0" ((deactivated))
HasFullAccessbooleanFull access to the subscription. Either "1" ((activated)), "0" ((deactivated))
LastLogindatetimeDate of the subscriber's last login
CreationdatetimeDate the subscriber was created
ModificationdatetimeDate the subscriber was last edited
ExtrasstringAdditional information on the subscriber, in varchar format up to 255 characters in size

Example response​

JSON
{
"response": {
"status": "ok",
"version": 2,
"requestid": "oZIxXN",
"requests": 167,
"content": {
"AccountID": 4516825,
"SubscriptionID": 4540112,
"LastName": "",
"FirstName": "",
"Email": "",
"Login": "leia",
"Password": "syCo3hJN",
"IsActive": 0,
"HasFullAccess": 0,
"LastLogin": false,
"Creation": "2015-10-16 11:31:05",
"Modification": "2015-10-16 11:31:05",
"Extras": ""
}
}
}