PUT /callcenter/emailoptouts


Update the opt out state of one ore more leads.
The data for this method must be sent in the body and should have the schema shown in the example.

Resource URL

http://www.lsitampa.com/callcenter/emailoptouts.{response_format}

Method

PUT

Response Format

json

Parameters

jsonp_callback - optional
If making cross domain Ajax calls use this as the call-back method name in your Ajax request.

HTTP Errors

400
{
  "error": {
    "code": 400,
    "message": "Bad request (if set by the developer, specific reason for bad request)"
  }
}
404
{
  "error": {
    "code": 404,
    "message": "Not found"
  }
}
500
{
  "error": {
    "code": 500,
    "message": "Internal Server Error"
  }
}

Examples

Update multiple records

All data must be in the body of the request!

Request URL
http://www.lsitampa.com/callcenter/emailoptouts.json
Request Body (Content)
{
   "api_key": the api key,
   "records": [
     {
       "ccid": 1,
       "datetime": yyyy-mm-ddThh:mm:ss,
       "opted_out": true/false,
       "do_not_email": true/false
     },
     {
       "ccid": 2,
       "datetime": yyyy-mm-ddThh:mm:ss,
       "opted_out": true/false,
       "do_not_email": true/false
     }
   ]
}
Result
{
   "api_key": the api key,
   "records": [
     {
       "ccid": 1,
       "datetime": yyyy-mm-ddThh:mm:ss,
       "opted_out": true/false,
       "do_not_email": true/false,
       "modified": true/false
     },
     {
       "ccid": 2,
       "datetime": yyyy-mm-ddThh:mm:ss,
       "opted_out": true/false,
       "do_not_email": true/false,
       "modified": true/false
     }
   ]
}