Update Broadcast Campaign Settings

Ashley Parks -

PUT /api/v2/lists/:list_id

Parameters

NameDescription
list[name] List name
list[message_yes] API Opt-In Confirmation Request
list[message_help] HELP Response
list[message_stop] STOP Response
list[message_reply] REPLY Response
list[message_already_subscribed] Already Subscribed Response
list[first_optin_message] First Opt In Message
list[second_optin_message] Second Opt In Message
list[email_digest] Email to send email digest to. Leave blank if you dont want to receive
list[email_subscribe] Email to send subscribe notifications to. Leave blank if you dont want to receive
list[email_unsubscribe] Email to send unsubscribe notifications to. Leave blank if you dont want to receive

Request

Headers

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

Host: example.org
Cookie: 

Route

PUT /api/v2/lists/1

Body

{"list":{"name":"Name"}}

cURL

curl "https://app.tatango.com/api/v2/lists/1" -d '{"list":{"name":"Name"}}' -X PUT \
	-H "Accept: application/json" \
	-H "Content-Type: application/json" \
	-u tatango:tatango_key_3HqowlbN9XfUvpOSIKh-Og \
	-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: "7db8891cb567f60168eb8f771b580931"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 53d020a14f61e4942e12c56e5380d168
X-Runtime: 0.020590
Set-Cookie: __profilin=p%3Dt; path=/
Content-Length: 414

Status

200 OK

Body

{"status":"OK","list":{"email_digest":"myemail37@gmail.com","email_subscribe":null,"email_unsubscribe":null,"first_optin_message":"","id":1,"message_already_subscribed":null,"message_help":null,"message_reply":null,"message_stop":null,"message_yes":null,"name":"Name","second_optin_message":"","keyword_names":[],"counts":{"subscribers":0,"unsubscribed":0,"cleaned":0},"opt_in_type":"single","opt_in_requests":[]}}
Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.