POST Api/Utility/SetConsents

Request Information

URI Parameters

None.

Body Parameters

Collection of Consent
NameDescriptionTypeAdditional information
ConsentId

integer

Required

ProfileId

string

None.

ContactId

integer

None.

ConsentDocumentId

integer

Required

StartDate

date

Required

EndDate

date

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "consentId": 1,
    "profileId": "sample string 2",
    "contactId": 1,
    "consentDocumentId": 3,
    "startDate": "2024-05-18T06:16:05.5412619+00:00",
    "endDate": "2024-05-18T06:16:05.5412619+00:00"
  },
  {
    "consentId": 1,
    "profileId": "sample string 2",
    "contactId": 1,
    "consentDocumentId": 3,
    "startDate": "2024-05-18T06:16:05.5412619+00:00",
    "endDate": "2024-05-18T06:16:05.5412619+00:00"
  }
]

multipart/form-data

Sample:
[{"consentId":1,"profileId":"sample string 2","contactId":1,"consentDocumentId":3,"startDate":"2024-05-18T06:16:05.5412619+00:00","endDate":"2024-05-18T06:16:05.5412619+00:00"},{"consentId":1,"profileId":"sample string 2","contactId":1,"consentDocumentId":3,"startDate":"2024-05-18T06:16:05.5412619+00:00","endDate":"2024-05-18T06:16:05.5412619+00:00"}]

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

boolean

Response Formats

application/json, text/json, multipart/form-data

Sample:
true

application/xml, text/xml

Sample:
<boolean>true</boolean>