DataPolicyService methods
DataPolicyService methods
The com.elasticpath.service.datapolicy.DataPolicyService class provides methods to create, update, and read data policies.
DataPolicy.update()
You can update a data policy by updating the datapolicy object using the update method.
DataPolicyService.update().
Note: You can modify settings for a data policy in the draft state only.
After modifying other properties of the data policy, update the data policy using the DataPolicyService.update() method.