Skip to main content

updateSubscriberDRMPeriod

This action allows you to update a period DRM.

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
loginRequiredstringLogin of the subscriber
period_idRequiredintegerID of the subscription period
fromRequireddateStart date of the period (YYYY-MM-DD)
toRequireddateEnd date of the period (YYYY-MM-DD)
extrasstringFree field up to 255 characters

Response​

NameTypeDescription
statusstringReturns ok if successful

Example response​

JSON
{
"response": {
"status": "ok",
"version": 2,
"requestid": "ZsI6Aq",
"requests": 172,
"content": {
"ID": 77859,
"SubscriptionID": 4540112,
"SubscriberLogin": "leia",
"From": "2015-09-01",
"To": "2016-09-01",
"Date": "2015-10-16 11:31:05",
"Extras": ""
}
}
}