Set the application property.

        :param key: key of the property to set
        :type key: str
        :param value: value to assign to the property
        :type value: str

def set_application_property(self, key, value):
        """Set the application property.

        :param key: key of the property to set
        :type key: str
        :param value: value to assign to the property
        :type value: str
        """
        url = self._options['server'] + \
            '/rest/api/latest/application-properties/' + key
        payload = {
            'id': key,
            'value': value}
        return self._session.put(
            url, data=json.dumps(payload))