Updates the set of VMP statuses that will cause the rejection of a license request.
Request
Endpoint
POST /drm/vmp-reject-statuses/update
Request Body Parameters
Name | Data Type | Description |
---|---|---|
vmp_reject_statuses | List of string values | List of VMP statuses that will cause license request rejection. |
Response
A successful response returns the following parameters:
Name | Data Type | Description |
---|---|---|
vmp_reject_statuses | List of string values | List of VMP statuses that will cause license request rejection. |
error | Integer | Indicates whether an error occurred. Learn more. |
Sample Request/Response
Use the Python script update_vmp_rejection_status_configuration.py
to update the VMP rejection status configuration. This script imports authentication parameters from api_auth.py
.
Python Example:
import requests
from api_auth import APICredentials, APIParams
class VMPStatusUpdate:
def __init__(self):
self.host = "https://services.uplynk.com"
def run(self):
"""Update VMP rejection status configuration."""
self._update_vmp_status_configuration()
def _update_vmp_status_configuration(self):
vmp_data = {
'item': {
'vmp_reject_statuses': ['PLATFORM_UNVERIFIED']
}
}
url = f"{self.host}/api/v3/drm/vmp-reject-statuses/update"
response = requests.post(
url, data=APIParams(APICredentials()).get_params(vmp_data)
)
print(response.json())
VMPStatusUpdate().run()
Sample Response:
{
"vmp_reject_statuses": [
"PLATFORM_UNVERIFIED"
],
"error": 0
}