Data_Processing_Basis in CRM consent management REST API

Data_Processing_Basis in CRM consent management REST API

The official documentation for storing GDPR consent programatically through REST API is incorrect.

The example POST / PUT payload on https://www.zoho.com/crm/developer/docs/api/v2/gdpr-compliance.html:

  1. "Data_Processing_Basis_Details": {
  2.                 "Contact_Through_Email": true,
  3.                 "Contact_Through_Social": true,
  4.                 "Consent_Through": "Email",
  5.                 "Contact_Through_Survey": true,
  6.                 "Data_Processing_Basis": "Obtained",
  7.                 "Contact_Through_Phone": true,
  8.                 "Consent_Date": "2018-04-18",
  9.                 "Consent_Remarks": "fgvhbjnm"
  10. }

The "Data_Processing_Basis" property has invalid value;  it should be "Consent - Obtained". Otherwise the API fails.

This is hard do debug, given the Data Processing Basis feature is no available in CRM Sandbox and the docs suggest a wrong value.