Logout in: 0 min and 0 sec

Manage Notice Emails

POST - https://rest.triand.com/Access/adminEmailNoticeList

Required Parameters: (JSON)

ParameterBusiness Rule / RegexDescription
action/(list|add|remove)/Action to perform: list, add, or remove
email/^\w$/Email address to add or remove (blank for list action)

List Example

CURL

curl -X POST https://rest.triand.com/Access/adminEmailNoticeList        \
     -H "Authorization: Bearer eyJ....really long string...ItCJA"     \
     -H "Accept: application/json"                                    \
     -H "Content-Type: application/json"                              \
     -d '{"action": "list", "email": ""}'

Javascript fetch

let url = 'https://rest.triand.com/Access/adminEmailNoticeList';
let parameters = { action: 'list', email: '' }
let opts = { 
  method: 'POST',
  headers: {
    'Authorization' = 'Bearer eyJ....really long string...ItCJA'
    'Accept': 'application/json',
    'Content-Type': 'application/json',
  },
  body:  JSON.stringify(parameters),
  withCredentials: false,
  credentials: 'include',
  }
let response = await fetch(url, opts);

Add Example

CURL

curl -X POST https://rest.triand.com/Access/adminEmailNoticeList        \
     -H "Authorization: Bearer eyJ....really long string...ItCJA"     \
     -H "Accept: application/json"                                    \
     -H "Content-Type: application/json"                              \
     -d '{"action": "add", "email": "support@triand.com"}'

Javascript fetch

let url = 'https://rest.triand.com/Access/adminEmailNoticeList';
let parameters = { action: 'add', email: 'support' }
let opts = { 
  method: 'POST',
  headers: {
    'Authorization' = 'Bearer eyJ....really long string...ItCJA'
    'Accept': 'application/json',
    'Content-Type': 'application/json',
  },
  body:  JSON.stringify(parameters),
  withCredentials: false,
  credentials: 'include',
  }
let response = await fetch(url, opts);
''