Jump to: navigation, search
(Update with the copy of version: 8.5.2DRAFT)
(Update with the copy of version: 8.5.2DRAFT)
Line 1: Line 1:
 
=UpdateUserData=
 
=UpdateUserData=
 
__NOTOC__
 
__NOTOC__
This operation is part of the [[Twitter|Twitter API]] section of the [[Welcome|Genesys Web Services REST API]].
+
This operation is part of the [[Twitter|Twitter API]] section of the [[Welcome|Web Services API]].
 
==Overview==
 
==Overview==
 
Overwrites the specified keys in the UserData with the specified values in the existing data.
 
Overwrites the specified keys in the UserData with the specified values in the existing data.

Revision as of 19:56, January 22, 2016

UpdateUserData

This operation is part of the Twitter API section of the Web Services API.

Overview

Overwrites the specified keys in the UserData with the specified values in the existing data.

Request URL /api/v2/me/twitter/{id}
HTTP Method POST
Required Features api-multimedia

Parameters

Parameter Value
operationName UpdateUserData
userData The key value data to update.

Samples

Request

POST api/v2/me/twitter/01QQQG2MU214P05N
{
  "operationName": "UpdateUserData",
  "userData": {
      "UserData1":987654321,
      "UserData2":"DATAUPDATE-@123"
   }
}

HTTP Response

{
  "statusCode": 0,
  "referenceId": 29
}

CometD Response

{  
   "twitter":{  
      "userData":{  
         "_twitterUserImageURL":"http: //abs.twimg.com/sticky/default_profile_images/default_profile_1_normal.png",
         "FirstName":"Oleg",
         "LastName":"Witcher",
         "RTargetObjectSelected":"SocialMediaAgentGroup",
         "RVQDBID":"",
         "_twitterUserStatusesCount":"2",
         "CBR-actual_volume":"",
         "RVQID":"",
         "_twitterMsgType":"Status",
         "Screen_Sentiment_ScreenRuleName":"",
         "_twitterMsgPlainText":"On12: 58: 911/5/2013, 
           Pcreatedapostsayinghelloworld!.",
         "_umsRequestId":"14",
         "_umsChannel":"channel-twitter",
         "_twitterUserId":"2175525290",
         "_twitterIsRetweet":"false",
         "Screen_Actionability_CtgName":"",
         "desktop_expand":"1",
         "RTargetObjSelDBID":"117",
         "CBR-Interaction_cost":"",
         "_umsInboundIxnSubmittedBy":"Cloud_localhost",
         "Screen_Sentiment_CtgRelevancy":"",
         "Screen_Actionability_CtgRelevancy":"",
         "desktop_sentiment":"Neutral",
         "_twitterUserCreatedAt":"2013-11-05T06: 56: 43Z",
         "_umsMediaType":"twitter",
         "desktop_actionable":"1",
         "_twitterFromAddr":"vitaliy_onv",
         "RRequestedSkills":None,
         "CBR-contract_DBIDs":"",
         "ContactId":"0000Ka96XNNU4488",
         "RTargetAgentSelected":"a1",
         "_twitterUserName":"OlegWitcher",
         "Classify_Sentiment_CtgRelevancy":"",
         "CBR-IT-path_DBIDs":"",
         "Classify_Actionability_CtgRelevancy":"",
         "Classify_Actionability_CtgName":"",
         "Classify_Sentiment_CtgId":"",
         "RTargetRuleSelected":"",
         "_twitterFromUserId":"2175525290",
         "_umsMediaAccount":"2175525290",
         "PegAGSocialMediaAgentGroup":1,
         "UserData2":"DATAUPDATE-@123",
         "RTargetPlaceSelected":"a1",
         "ContactCreated":"false",
         "UserData1":987654321,
         "ContactIdList":"0000Ka96XNNU4488",
         "RTenant":"Environment",
         "_twitterToAddr":"vitaliy_onv",
         "_umsFromAddr":"vitaliy_onv",
         "Classify_Sentiment_CtgName":"",
         "IxnAlreadyCreatedInUCS":"1",
         "RouterData70":"("         t"="1383649092 0")",
         "_twitterUserScreenName":"vitaliy_onv",
         "_twitterUserFriendsCount":"0",
         "_twitterUserIsFriend":"false",
         "Screen_Actionability_ScreenRuleName":"",
         "_twitterSource":"<ahref="         http://www.kaermorhen.ru"rel="nofollow">Witcher_APP</a>",
         "KloutId":"",
         "RRequestedSkillCombination":"",
         "_umsChannelInfo":{  
            "_twitterUserId":"2175525290",
            "_twitterUserImageURL":"http: //abs.twimg.com/sticky/default_profile_images/default_profile_1_normal.png",
            "_twitterUserName":"OlegWitcher",
            "_twitterSourceNickName":"TwitterApplicationSmServer-1",
            "_twitterUserScreenName":"vitaliy_onv"
         },
         "_twitterMsgId":"58765591",
         "RStrategyName":"TwitterAgentDeliveryStrategy",
         "RStrategyDBID":"985",
         "_twitterIsFavorited":"false",
         "CustomerSegment":"default",
         "_twitterUserIsFollower":"false",
         "Classify_Actionability_CtgId":"",
         "ServiceType":"default",
         "_umsChatPossible":"false",
         "Screen_Sentiment_CtgName":"",
         "_twitterUserUtcOffset":"-1",
         "_twitterQueryName":"stream-user",
         "ServiceObjective":0,
         "NumberOfContactsFound":"1",
         "_twitterUserLanguage":"r",
         "FromAddress":"vitaliy_onv(OlegWitcher)",
         "RTargetRequested":"SocialMediaAgentGroup",
         "RTargetAgentGroup":"SocialMediaAgentGroup",
         "ClassifiedAndScreened":"1",
         "_twitterRetweetCount":"0",
         "_umsMsgPlainText":"On12: 58: 911/5/2013, 
           Pcreatedapostsayinghelloworld!.",
         "_twitterUserFollowersCount":"0",
         "RTargetTypeSelected":"2",
         "_twitterCreatedAt":"2013-11-05T10: 58: 12Z",
         "Subject":"On12: 58: 911/5/2013, 
           Pcreatedapos..."
      },
      "from":"vitaliy_onv(OlegWitcher)",
      "receivedDate":"2015-03-0214: 23: 11.000+0200",
      "suggestedQueueUris":[  

      ],
      "capabilities":[  
         "Reply",
         "Transfer",
         "AddComment",
         "AttachUserData",
         "UpdateUserData",
         "DeleteUserData",
         "SetDisposition",
         "SetInFocus",
         "Complete"
      ],
      "uri":"http: //192.168.83.25: 8080/api/v2/twitters/01QQQG2MU214P05N",
      "state":"Processing",
      "contactId":"0000Ka96XNNU4488",
      "revelantResponseTemplateGroups":[  

      ],
      "message":"On12: 58: 911/5/2013, 
       Pcreatedapostsayinghelloworld!.",
      "id":"01QQQG2MU214P05N",
      "twitterType":"Inbound",
      "subject":"On12: 58: 911/5/2013, 
       Pcreatedapos..."
   },
   "referenceId":29,
   "notificationType":"PropertiesUpdated",
   "messageType":"TwitterStateChangeMessage"
}
Comments or questions about this documentation? Contact us for support!