Email
Replace email channel
Changed onCreates a new email channel in place of the provided channel. You may use this endpoint to change a contact's email address. When called with an email channel, this endpoint will:
- Register a new channel
- Associate the new email channel with the same user as the source channel
- Uninstall the source channel
post/api/channels/email/replace/{channel_id}
Request
- Base URLhttps://go.urbanairship.com
- Auth
- HTTP basic
- or HTTP bearer
- or OAuth 2Client credentialsToken URLhttp://oauth2.{domain}.com/tokenScopeschn
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
channel_idstring required
Example:251d3318-b3cb-4e9f-876a-ea3bfa6e47bd
The email channel_id you want to modify.
Request body
Example request
{
"channel": {
"address": "name@example.com",
"locale_country": "US",
"locale_language": "en",
"timezone": "America/Los_Angeles",
"type": "email"
},
"opt_in_mode": "double",
"properties": {
"interests": "newsletter"
}
}Response
The operation was successful.
Changes
- warning
removed the request property
- info
added the new optional request property
This list may be incomplete.
- warning