Appearance
getEConsents ​
Returns a list of eConsents for a given Company or Event.
Request ​
http
GET /rest/user/econsentsHeaders ​
| Header | Required | Description |
|---|---|---|
x-nextinteract-authtoken | Yes | Auth token returned from loginUser |
Parameters ​
Query Params:
| Parameter | Type | Required | Description |
|---|---|---|---|
type | string | Yes | Either C for Company or E for Event. |
companyId | integer | Yes (when type=C) | Company id of the company for which econsents are being requested. |
eventUUID | string | Yes (when type=E) | Event UUID of the event for which econsents are being requested. |
Response ​
200 OK ​
COMPANY ECONSENTS
json
[
{
"consentTypeCode": "C",
"consentUUID": "7b28ac8b-bad2-4ed8-9b9d-63d5c2314c68",
"companyId": 3,
"consentValue": "I agree to the terms and conditions blah..of...blah",
"consentRequired": true
},
{
"consentTypeCode": "C",
"consentUUID": "b44eeef6-50c0-4b2d-b223-6d63e451fda6",
"companyId": 3,
"consentValue": "I permit Blah to send marketing material to me...blah",
"consentRequired": true
}
]json
[
{
"consentTypeCode": "C",
"consentUUID": "ab321741-aac0-4257-92b1-53bf58aa5f68",
"eventUUID": "eb2d927b-fc11-4da4-8955-e63946f05a28",
"consentValue": "I agree to the terms and conditions blah..of...blah",
"consentRequired": true
},
{
"consentTypeCode": "C",
"consentUUID": "9a6d2eba-d84b-4083-a41d-7b44f5f0eab1",
"eventUUID": "a988807a-f277-4b7a-94b8-86f5d580af29",
"consentValue": "I permit Blah to send marketing material to me...blah",
"consentRequired": false
}
]Errors ​
| Exception | Description |
|---|---|
WSInvalidParameterException | See Error Definitions |
WSUserServiceException | See Error Definitions |