Consents
Get Consents
get /consentsDeprecated!
Returns a list of consents available when adding a new contact. See CrmConsent for fields.
gethttps://customcrmapi.example.com/consents
RESPONSE JSON
[ { "consentid": "1", "name": "Terms And Conditions", "description": "I agree to the terms and conditions", "value": true }, { "consentid": "2", "name": "Marketing Consent", "description": "I consent to marketing being sent to me", "value": true }]
HTTP Status Code Summary | |
---|---|
200 | Returns an array of CrmConsent to be used when adding and updating a contact |
400 | Bad Request. Invalid syntax, missing required argument or invalid request. |
401 | Unauthorized. Authorization failed. |
404 | Resource not found. The url is invalid. |
500 | Internal Server Error. |
Objects
crmconsentobject
PROPERTIES
consentid
string
ID of the consent.
name
string
Name displayed for the consent.
description
string
Description of the consent.
value
boolean
Boolean value indicating if the default value when adding a new contact should be to accept the consent or not.