Use this API to update policyexpression.
556504
public static base_response update(nitro_service client, policyexpression resource) throws Exception {
		policyexpression updateresource = new policyexpression();
		updateresource.name = resource.name;
		updateresource.value = resource.value;
		updateresource.description = resource.description;
		updateresource.comment = resource.comment;
		updateresource.clientsecuritymessage = resource.clientsecuritymessage;
		return updateresource.update_resource(client);
	}
490970
public static base_response update(nitro_service client, pqpolicy resource) throws Exception {
		pqpolicy updateresource = new pqpolicy();
		updateresource.policyname = resource.policyname;
		updateresource.weight = resource.weight;
		updateresource.qdepth = resource.qdepth;
		updateresource.polqdepth = resource.polqdepth;
		return updateresource.update_resource(client);
	}
1220468
public static policyexpression[] get(nitro_service service) throws Exception{
		policyexpression obj = new policyexpression();
		policyexpression[] response = (policyexpression[])obj.get_resources(service);
		return response;
	}
160960
def update_policy(self, scaling_group, policy, name=None, policy_type=None,
            cooldown=None, change=None, is_percent=False,
            desired_capacity=None, args=None):
        
        return self._manager.update_policy(scaling_group, policy, name=name,
                policy_type=policy_type, cooldown=cooldown, change=change,
                is_percent=is_percent, desired_capacity=desired_capacity,
                args=args)
396543
def _calculatePolicy(self):
        """"""
        cmd = '''
              UPDATE policy
                 SET action = (
                     SELECT action
                       FROM (SELECT state, action, MAX(value)
                               FROM Q
                              GROUP BY state) AS A
                       WHERE policy.state = A.state
                       GROUP BY state);'''
        self._cur.execute(cmd)
        self._conn.commit()
1260819
public static base_response update(nitro_service client, filterprebodyinjection resource) throws Exception {
		filterprebodyinjection updateresource = new filterprebodyinjection();
		updateresource.prebody = resource.prebody;
		return updateresource.update_resource(client);
	}
874821
public final void setUsagePolicy(Callback<Integer, Usage> policy) {
        Objects.requireNonNull(policy);
        this.usagePolicy.set(policy);
    }
471913
function updatePolicy (params, cb) {
      let promise = null
      if (typeof cb !== 'function') [promise, cb] = asyncify()

      const { id, organizationId, version, name, statements } = params

      Joi.validate({ id, organizationId, version, name, statements }, validationRules.updatePolicy, function (err) {
        if (err) return cb(Boom.badRequest(err))

        const sqlQuery = SQL`
          UPDATE policies
          SET
            version = ${version},
            name = ${name},
            statements = ${statements}
          WHERE
            id = ${id}
            AND org_id = ${organizationId}
        `
        db.query(sqlQuery, function (err, result) {
          if (utils.isUniqueViolationError(err)) return cb(Boom.conflict(err.detail))
          if (err) return cb(Boom.badImplementation(err))
          if (result.rowCount === 0) return cb(Boom.notFound())

          policyOps.readPolicy({ id, organizationId }, cb)
        })
      })

      return promise
    }
1288080
public static backup_policy update(nitro_service client, backup_policy resource) throws Exception
	{
		resource.validate("modify");
		return ((backup_policy[]) resource.update_resource(client))[0];
	}
1178262
public void reloadPolicies(String scanPolicyName) {
        DefaultComboBoxModel<String> policies = new DefaultComboBoxModel<>();
        for (String policy : extension.getPolicyManager().getAllPolicyNames()) {
            policies.addElement(policy);
        }
        getPolicySelector().setModel(policies);
        getPolicySelector().setSelectedItem(scanPolicyName);
    }
1347907
public static base_response update(nitro_service client, policyhttpcallout resource) throws Exception {
		policyhttpcallout updateresource = new policyhttpcallout();
		updateresource.name = resource.name;
		updateresource.ipaddress = resource.ipaddress;
		updateresource.port = resource.port;
		updateresource.vserver = resource.vserver;
		updateresource.returntype = resource.returntype;
		updateresource.httpmethod = resource.httpmethod;
		updateresource.hostexpr = resource.hostexpr;
		updateresource.urlstemexpr = resource.urlstemexpr;
		updateresource.headers = resource.headers;
		updateresource.parameters = resource.parameters;
		updateresource.bodyexpr = resource.bodyexpr;
		updateresource.fullreqexpr = resource.fullreqexpr;
		updateresource.scheme = resource.scheme;
		updateresource.resultexpr = resource.resultexpr;
		updateresource.cacheforsecs = resource.cacheforsecs;
		return updateresource.update_resource(client);
	}
558454
public static policyexpression[] get_filtered(nitro_service service, String filter) throws Exception{
		policyexpression obj = new policyexpression();
		options option = new options();
		option.set_filter(filter);
		policyexpression[] response = (policyexpression[]) obj.getfiltered(service, option);
		return response;
	}
1124604
def update_policy(self,defaultHeaders):
		
		if self.inputs is not None:
			for k,v in defaultHeaders.items():
				if k not in self.inputs:
					self.inputs[k] = v
			return self.inputs
		else:
			return self.inputs
605912
def applyPolicies(self, request):
        '''
        
        '''
        for policy in self._actingPolicies[request.method]:
            request = policy.apply(request)
        return request
409329
public static base_response update(nitro_service client, dospolicy resource) throws Exception {
		dospolicy updateresource = new dospolicy();
		updateresource.name = resource.name;
		updateresource.qdepth = resource.qdepth;
		updateresource.cltdetectrate = resource.cltdetectrate;
		return updateresource.update_resource(client);
	}
1065180
public static base_response update(nitro_service client, filteraction resource) throws Exception {
		filteraction updateresource = new filteraction();
		updateresource.name = resource.name;
		updateresource.servicename = resource.servicename;
		updateresource.value = resource.value;
		updateresource.respcode = resource.respcode;
		updateresource.page = resource.page;
		return updateresource.update_resource(client);
	}
480947
public static base_response add(nitro_service client, policyexpression resource) throws Exception {
		policyexpression addresource = new policyexpression();
		addresource.name = resource.name;
		addresource.value = resource.value;
		addresource.description = resource.description;
		addresource.comment = resource.comment;
		addresource.clientsecuritymessage = resource.clientsecuritymessage;
		return addresource.add_resource(client);
	}