Configuring Opt In Type to Single

Ashley Parks -

PUT /api/v2/lists/:list_id/opt_in_settings

Parameters

Name Description
opt_in_type Opt in type, single or double
first_optin_message First opt in message
second_optin_message Second opt in message

Request

Headers

Accept: application/json
Content-Type: application/json
Authorization: Basic dGF0YW5nbzp0YXRhbmdvX2tleV9FNWhmZG1tMFFMUnVWZnFRRHE1cDdR

Host: example.org
Cookie: 

Route

PUT /api/v2/lists/1/opt_in_settings

Body

{"opt_in_type":"single","first_optin_message":"Welcome","second_optin_message":"Welcome back"}

cURL

curl "https://app.tatango.com/api/v2/lists/1/opt_in_settings" -d '{"opt_in_type":"single","first_optin_message":"Welcome","second_optin_message":"Welcome back"}' -X PUT \
	-H "Accept: application/json" \
	-H "Content-Type: application/json" \
	-u tatango:tatango_key_E5hfdmm0QLRuVfqQDq5p7Q \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json; charset=utf-8
X-Meta-Request-Version: 0.2.6
Content-Security-Policy: default-src https: 'self'; connect-src http: https: 'self' wss://*.intercom.io; img-src https: 'self'; script-src 'self' *.intercom.io *.intercomcdn.com 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; report-uri /uri-directive
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Frame-Options: SAMEORIGIN
X-Permitted-Cross-Domain-Policies: none
X-XSS-Protection: 1; mode=block
X-UA-Compatible: IE=Edge,chrome=1
ETag: "55c463f9be8df39d4d33acdac2a869a3"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: a1b7dddcf0c7e154f9d2831cdae65d5f
X-Runtime: 0.019463
Set-Cookie: __profilin=p%3Dt; path=/
Content-Length: 129

Status

200 OK

Body

{"status":"Opt in settings updated","opt_in_type":"single","first_optin_message":"Welcome","second_optin_message":"Welcome back"}

Error Messages

 

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.