Welcome Messages
API Reference contents
DELETE direct_messages/welcome_messages/destroy
DELETE direct_messages/welcome_messages/rules/destroy
GET direct_messages/welcome_messages/show
GET direct_messages/welcome_messages/rules/show
GET direct_messages/welcome_messages/rules/list
GET direct_messages/welcome_messages/list
POST direct_messages/welcome_messages/new
POST direct_messages/welcome_messages/rules/new
PUT direct_messages/welcome_messages/update
PUT direct_messages/welcome_messages/update¶
Updates a Welcome Message by the given ID. Updates to the welcome_message
object are atomic.
For example, if the Welcome Message currently has quick_reply
defined and you only provde
text
, the quick_reply
object will be removed from the Welcome Message.
Resource URL¶
https://api.twitter.com/1.1/direct_messages/welcome_messages/update.json
Resource Information¶
Response formats | JSON |
Requires authentication? | Yes (user context only) |
Rate limited? | Yes |
Parameters¶
id (required) | The id of the Welcome Message that should be updated. |
Example request using Twurl¶
twurl -A 'Content-type: application/json' -X PUT '/1.1/direct_messages/welcome_messages/update.json?id=4893198399134' -d ‘
{
"message_data":{
"text": "Welcome!"
}
}
Example Response¶
{
"name": "Generic Welcome 01"
"welcome_message": {
"id": "4893198399134",
"created_timestamp": "154903045",
"message_data": {
"text": "Welcome!"
}
},
"apps": {
"8829219": {
"id": "8829219",
"name": "Furni",
"url": "https://developer.twitter.com"
}
}
}