Jump to: navigation, search

Update User Data

Overview

This operation is used to send a chat interaction.

This operation overwrites the specified UserData with new, specified values.

Request URL /api/v2/chats/{chatId}
HTTP Method POST
HTTP Header Content-Type
Value application/json


Parameters

Parameter Name Sample Value Description Required/Optional
operationName "UpdateUserData" To identify the operation to be performed at this URL Required
userId "007553863DC30029" User ID Required
secureKey "8b31761b2154884c" Secure key Required
alias "117" Host alias Required
tenantName "Environment" Tenant name Required
userData ["key":"value","key":"value"] User data to be updated.

Values are formatted as "key:value" pairs, with each pair separated by a colon (:) inside the JSON array, as shown in the Sample Value.

Required
text "text..." Text, if any Optional

Example

Request

{
  "operationName" : "UpdateUserData",
  "alias" : "117",
  "secureKey" : "8b31761b2154884c",
  "userId" : "007553863DC30029",
  "tenantName": "Environment",
    "userData":{
        "key1":"value1",
        "key2":"value2"
    }
}

Response

{
    "statusCode":0,
    "alias":"117",
    "secureKey":"8b31761b2154884c",
    "userId":"007553863DC30029",
    "tenantName": "Environment"
}
This page was last edited on September 11, 2014, at 14:22.
blog comments powered by Disqus