機械翻訳について

指定した会話を更新

put

/social/api/v1/conversations/{conversationID}

リクエスト

サポートされているメディア・タイプ
パス・パラメータ
本文()
リクエスト本文は、リクエストの詳細を定義します。
ルート・スキーマ: XV1ConversationUpdateInfo
型: object
V1会話更新情報。
ソースを表示
ネストされたスキーマ: XConversationUpdater
型: object
会話のアップデータ。
ソースを表示
トップに戻る

レスポンス

サポートされているメディア・タイプ

200レスポンス

操作の成功
本文()
ルート・スキーマ: XV1ConversationInfo
型: object
V1会話情報DTO。
ソースを表示
ネストされたスキーマ: XV1HierarchicalMembersInfo
型: object
V1階層メンバー情報DTO。
ソースを表示
ネストされたスキーマ: secondaryExternalIDs
型: array
この会話のセカンダリ外部ID。
ソースを表示
ネストされたスキーマ: XV1ConversationState
型: object
ソースを表示
  • 許容値: [ "CLOSED_CHAINED", "CLOSED_DISABLED", "CLOSED_DROPPED", "CLOSED_RESOLVED", "OPEN_ACTIVE" ]
    V1会話の状態。
ネストされたスキーマ: XV1WallPostControlEnum
型: object
ソースを表示
  • 許容値: [ "ANYONE_CAN_POST", "OWNER_ONLY_POSTS", "OWNER_TOP_LEVEL" ]
    V1壁ポスト制御列挙型。
ネストされたスキーマ: XV1FolderIDListInfo
型: object
フォルダIDのリスト。
ソースを表示
ネストされたスキーマ : XV1IgnoredMemberListInfo
型: object
無視されたメンバーのリスト。
ソースを表示
ネストされたスキーマ: XV1IgnoredUserListInfo
型: object
無視されたユーザーのリスト。
ソースを表示
ネストされたスキーマ: XV1HierarchicalMembersOperationType
型: object
ソースを表示
  • 許容値: [ "ASSOCIATE_CONVERSATION", "CREATE_CONVERSATION", "MOVE_FILE", "MOVE_FOLDER", "MOVE_MEMBERS", "REMOVE_MEMBERS", "REMOVE_MEMBERS_OBJECT", "SHARE_FOLDER" ]
    階層ユーザーのV1ユーザーおよびグループAPI操作のタイプ。
ネストされたスキーマ: ids
型: array
フォルダIDのリスト。
ソースを表示
ネストされたスキーマ: groups
型: array
ユーザーのリスト。
ソースを表示
ネストされたスキーマ: users
型: array
ユーザーのリスト。
ソースを表示
ネストされたスキーマ: users
型: array
ユーザーのリスト。
ソースを表示
トップに戻る

次の例は、cURLを使用してRESTリソースにPUTリクエストを送信し、指定した会話を更新する方法を示しています。

curl -X PUT -c mycookies.jar -b mycookies.jar -H 'X-Waggle-RandomID:b97554e5a31e50a734899ee4f79218bd' -H 'Content-Type: application/json' https://socialnetwork06065-ustraveler15926.socialnetwork.dc1.c9dev1.example.com/osn/social/api/v1/conversations/22006 -d '{ "updater" : {"State":"OPEN_ACTIVE", "Altitude":"15"}}'

リクエスト本文の例

JSON形式のリクエスト・ドキュメントの例を次に示します。

{
  "updater" : {"State":"OPEN_ACTIVE", "Altitude":"15"}
}

レスポンス本文の例

レスポンスJSONドキュメントの例を次に示します。

"jeff.pringle@example.com",
  "createdByUserDisplayName" : "jeff.pringle@example.com",
  "createdByURL" : "https://socialnetwork06065-ustraveler15926.socialnetwork.dc1.c9dev1.example.com/osn/social/api/v1/people/11001",
  "createdDate" : 1455325485929,
  "modifiedByID" : "11001",
  "modifiedByUserName" : "jeff.pringle@example.com",
  "modifiedByUserDisplayName" : "jeff.pringle@example.com",
  "modifiedByURL" : "https://socialnetwork06065-ustraveler15926.socialnetwork.dc1.c9dev1.example.com/osn/social/api/v1/people/11001",
  "modifiedDate" : 1455326386743,
  "isRemoved" : false,
  "url" : "https://socialnetwork06065-ustraveler15926.socialnetwork.dc1.c9dev1.example.com/osn/social/api/v1/conversations/22006",
  "externalID" : "ext00055",
  "secondaryExternalIDs" : ["ext00055"],
  "isScoping" : false,
  "isScopingSame" : false,
  "isScoped" : false,
  "state" : "OPEN_ACTIVE",
  "isDiscoverable" : false,
  "wallPostControl" : "ANYONE_CAN_POST",
  "hasMembersLocked" : false,
  "isDisallowGuests" : false,
  "isDisallowOutsiders" : false,
  "nOutsiders" : 0,
  "isExtendedAccessControl" : false,
  "folderID" : "22011",
  "role" : "HOST",
  "isMuted" : false,
  "isNew" : true,
  "nChats" : 2,
  "nMarkableChats" : 1,
  "nUnread" : 0,
  "nFollowups" : 0,
  "membersURL" : "https://socialnetwork06065-ustraveler15926.socialnetwork.dc1.c9dev1.example.com/osn/social/api/v1/conversations/22006/members",
  "membershipsURL" : "https://socialnetwork06065-ustraveler15926.socialnetwork.dc1.c9dev1.example.com/osn/social/api/v1/conversations/22006/memberships",
  "messagesURL" : "https://socialnetwork06065-ustraveler15926.socialnetwork.dc1.c9dev1.example.com/osn/social/api/v1/conversations/22006/messages",
  "propertiesURL" : "https://socialnetwork06065-ustraveler15926.socialnetwork.dc1.c9dev1.example.com/osn/social/api/v1/conversations/22006/properties",
  "userPropertiesURL" : "https://socialnetwork06065-ustraveler15926.socialnetwork.dc1.c9dev1.example.com/osn/social/api/v1/conversations/22006/userProperties",
  "starsURL" : "https://socialnetwork06065-ustraveler15926.socialnetwork.dc1.c9dev1.example.com/osn/social/api/v1/conversations/22006/stars",
  "likesURL" : "https://socialnetwork06065-ustraveler15926.socialnetwork.dc1.c9dev1.example.com/osn/social/api/v1/conversations/22006/likes",
  "gadgetsURL" : "https://socialnetwork06065-ustraveler15926.socialnetwork.dc1.c9dev1.example.com/osn/social/api/v1/conversations/22006/gadgets",
  "archiveURL" : "https://socialnetwork06065-ustraveler15926.socialnetwork.dc1.c9dev1.example.com/osn/social/api/v1/conversations/22006/archive",
  "folderURL" : "https://socialnetwork06065-ustraveler15926.socialnetwork.dc1.c9dev1.example.com/osn/social/api/v1/folders/22011"
}
先頭に戻る