Function putConsentState

Add or update a consent state