Update VMP Rejection Status Configuration

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

NameData TypeDescription
vmp_reject_statusesList of string valuesList of VMP statuses that will cause license request rejection.

Response

A successful response returns the following parameters:

NameData TypeDescription
vmp_reject_statusesList of string valuesList of VMP statuses that will cause license request rejection.
errorIntegerIndicates 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
}