Update Subscriber with an API Request

Ashley Parks -

PUT /api/v2/lists/:list_id/subscribers/:phone_number

Parameters

NameDescription
subscriber[phone_number] Phone number
subscriber[first_name] (optional) First name
subscriber[last_name] (optional) Last name
subscriber[email] (optional) Email
subscriber[dob] (optional) Date of birth
subscriber[zip_code] (optional) ZIP code
subscriber[gender] (optional) Gender

 

Request

Headers

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

Host: example.org
Cookie: 

Route

PUT /api/v2/lists/1/subscribers/2141234567

Body

{"subscriber":{"first_name":"John","last_name":"Doe"}}

cURL

curl "https://app.tatango.com/api/v2/lists/1/subscribers/2141234567" -d '{"subscriber":{"first_name":"John","last_name":"Doe"}}' -X PUT \
	-H "Accept: application/json" \
	-H "Content-Type: application/json" \
	-u tatango:tatango_key_a4hD6_iSpxWtbwc_jVpBdA \
	-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: "b3daf9f0d40e5aff9b131e8f0b8fa11b"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 9ff4bc60348ee07aa7ad15ab80bf3b5f
X-Runtime: 0.038218
Set-Cookie: __profilin=p%3Dt; path=/
Content-Length: 277

Status

200 OK

Body

{"status":"Subscriber has been updated.","subscriber":{"phone_number":"2141234567","first_name":"John","last_name":"Doe","email":"","dob":"","zip_code":"","gender":null,"cleaned_at":null,"subscribed_at":null,"opted_out_at":"2016-08-04T16:00:00-07:00","optin_in_progress":true}}
Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.