diff --git a/specification/communication/data-plane/Microsoft.CommunicationServicesChat/preview/2020-11-01-preview3/communicationserviceschat.json b/specification/communication/data-plane/Microsoft.CommunicationServicesChat/preview/2020-11-01-preview3/communicationserviceschat.json
index dbf06d7ac34d..f3230a2353df 100644
--- a/specification/communication/data-plane/Microsoft.CommunicationServicesChat/preview/2020-11-01-preview3/communicationserviceschat.json
+++ b/specification/communication/data-plane/Microsoft.CommunicationServicesChat/preview/2020-11-01-preview3/communicationserviceschat.json
@@ -52,28 +52,28 @@
"401": {
"description": "Unauthorized.",
"schema": {
- "$ref": "#/definitions/Error"
+ "$ref": "#/definitions/ErrorResponse"
},
"x-ms-error-response": true
},
"403": {
"description": "Forbidden.",
"schema": {
- "$ref": "#/definitions/Error"
+ "$ref": "#/definitions/ErrorResponse"
},
"x-ms-error-response": true
},
"429": {
"description": "Too many requests.",
"schema": {
- "$ref": "#/definitions/Error"
+ "$ref": "#/definitions/ErrorResponse"
},
"x-ms-error-response": true
},
"503": {
"description": "Service unavailable.",
"schema": {
- "$ref": "#/definitions/Error"
+ "$ref": "#/definitions/ErrorResponse"
},
"x-ms-error-response": true
}
@@ -122,34 +122,34 @@
}
],
"responses": {
- "201": {
+ "200": {
"description": "Request successful."
},
"401": {
"description": "Unauthorized.",
"schema": {
- "$ref": "#/definitions/Error"
+ "$ref": "#/definitions/ErrorResponse"
},
"x-ms-error-response": true
},
"403": {
"description": "Forbidden.",
"schema": {
- "$ref": "#/definitions/Error"
+ "$ref": "#/definitions/ErrorResponse"
},
"x-ms-error-response": true
},
"429": {
"description": "Too many requests.",
"schema": {
- "$ref": "#/definitions/Error"
+ "$ref": "#/definitions/ErrorResponse"
},
"x-ms-error-response": true
},
"503": {
"description": "Service unavailable.",
"schema": {
- "$ref": "#/definitions/Error"
+ "$ref": "#/definitions/ErrorResponse"
},
"x-ms-error-response": true
}
@@ -205,28 +205,28 @@
"401": {
"description": "Unauthorized.",
"schema": {
- "$ref": "#/definitions/Error"
+ "$ref": "#/definitions/ErrorResponse"
},
"x-ms-error-response": true
},
"403": {
"description": "Forbidden.",
"schema": {
- "$ref": "#/definitions/Error"
+ "$ref": "#/definitions/ErrorResponse"
},
"x-ms-error-response": true
},
"429": {
"description": "Too many requests.",
"schema": {
- "$ref": "#/definitions/Error"
+ "$ref": "#/definitions/ErrorResponse"
},
"x-ms-error-response": true
},
"503": {
"description": "Service unavailable.",
"schema": {
- "$ref": "#/definitions/Error"
+ "$ref": "#/definitions/ErrorResponse"
},
"x-ms-error-response": true
}
@@ -282,28 +282,28 @@
"401": {
"description": "Unauthorized.",
"schema": {
- "$ref": "#/definitions/Error"
+ "$ref": "#/definitions/ErrorResponse"
},
"x-ms-error-response": true
},
"403": {
"description": "Forbidden.",
"schema": {
- "$ref": "#/definitions/Error"
+ "$ref": "#/definitions/ErrorResponse"
},
"x-ms-error-response": true
},
"429": {
"description": "Too many requests.",
"schema": {
- "$ref": "#/definitions/Error"
+ "$ref": "#/definitions/ErrorResponse"
},
"x-ms-error-response": true
},
"503": {
"description": "Service unavailable.",
"schema": {
- "$ref": "#/definitions/Error"
+ "$ref": "#/definitions/ErrorResponse"
},
"x-ms-error-response": true
}
@@ -358,28 +358,28 @@
"401": {
"description": "Unauthorized.",
"schema": {
- "$ref": "#/definitions/Error"
+ "$ref": "#/definitions/ErrorResponse"
},
"x-ms-error-response": true
},
"403": {
"description": "Forbidden.",
"schema": {
- "$ref": "#/definitions/Error"
+ "$ref": "#/definitions/ErrorResponse"
},
"x-ms-error-response": true
},
"429": {
"description": "Too many requests.",
"schema": {
- "$ref": "#/definitions/Error"
+ "$ref": "#/definitions/ErrorResponse"
},
"x-ms-error-response": true
},
"503": {
"description": "Service unavailable.",
"schema": {
- "$ref": "#/definitions/Error"
+ "$ref": "#/definitions/ErrorResponse"
},
"x-ms-error-response": true
}
@@ -437,28 +437,28 @@
"401": {
"description": "Unauthorized.",
"schema": {
- "$ref": "#/definitions/Error"
+ "$ref": "#/definitions/ErrorResponse"
},
"x-ms-error-response": true
},
"403": {
"description": "Forbidden.",
"schema": {
- "$ref": "#/definitions/Error"
+ "$ref": "#/definitions/ErrorResponse"
},
"x-ms-error-response": true
},
"429": {
"description": "Too many requests.",
"schema": {
- "$ref": "#/definitions/Error"
+ "$ref": "#/definitions/ErrorResponse"
},
"x-ms-error-response": true
},
"503": {
"description": "Service unavailable.",
"schema": {
- "$ref": "#/definitions/Error"
+ "$ref": "#/definitions/ErrorResponse"
},
"x-ms-error-response": true
}
@@ -504,28 +504,28 @@
"401": {
"description": "Unauthorized.",
"schema": {
- "$ref": "#/definitions/Error"
+ "$ref": "#/definitions/ErrorResponse"
},
"x-ms-error-response": true
},
"403": {
"description": "Forbidden.",
"schema": {
- "$ref": "#/definitions/Error"
+ "$ref": "#/definitions/ErrorResponse"
},
"x-ms-error-response": true
},
"429": {
"description": "Too many requests.",
"schema": {
- "$ref": "#/definitions/Error"
+ "$ref": "#/definitions/ErrorResponse"
},
"x-ms-error-response": true
},
"503": {
"description": "Service unavailable.",
"schema": {
- "$ref": "#/definitions/Error"
+ "$ref": "#/definitions/ErrorResponse"
},
"x-ms-error-response": true
}
@@ -566,28 +566,28 @@
"401": {
"description": "Unauthorized.",
"schema": {
- "$ref": "#/definitions/Error"
+ "$ref": "#/definitions/ErrorResponse"
},
"x-ms-error-response": true
},
"403": {
"description": "Forbidden.",
"schema": {
- "$ref": "#/definitions/Error"
+ "$ref": "#/definitions/ErrorResponse"
},
"x-ms-error-response": true
},
"429": {
"description": "Too many requests.",
"schema": {
- "$ref": "#/definitions/Error"
+ "$ref": "#/definitions/ErrorResponse"
},
"x-ms-error-response": true
},
"503": {
"description": "Service unavailable.",
"schema": {
- "$ref": "#/definitions/Error"
+ "$ref": "#/definitions/ErrorResponse"
},
"x-ms-error-response": true
}
@@ -645,28 +645,28 @@
"401": {
"description": "Unauthorized.",
"schema": {
- "$ref": "#/definitions/Error"
+ "$ref": "#/definitions/ErrorResponse"
},
"x-ms-error-response": true
},
"403": {
"description": "Forbidden.",
"schema": {
- "$ref": "#/definitions/Error"
+ "$ref": "#/definitions/ErrorResponse"
},
"x-ms-error-response": true
},
"429": {
"description": "Too many requests.",
"schema": {
- "$ref": "#/definitions/Error"
+ "$ref": "#/definitions/ErrorResponse"
},
"x-ms-error-response": true
},
"503": {
"description": "Service unavailable.",
"schema": {
- "$ref": "#/definitions/Error"
+ "$ref": "#/definitions/ErrorResponse"
},
"x-ms-error-response": true
}
@@ -680,16 +680,15 @@
"nextLinkName": "nextLink",
"itemName": "value"
}
- },
- "post": {
+ }
+ },
+ "/chat/threads/{chatThreadId}/participants/{chatParticipantId}": {
+ "delete": {
"tags": [
"Participants"
],
- "summary": "Adds thread participants to a thread. If participants already exist, no change occurs.",
- "operationId": "ChatThread_AddChatParticipants",
- "consumes": [
- "application/json"
- ],
+ "summary": "Remove a participant from a thread.",
+ "operationId": "ChatThread_RemoveChatParticipant",
"produces": [
"application/json"
],
@@ -697,73 +696,71 @@
{
"in": "path",
"name": "chatThreadId",
- "description": "Id of the thread to add participants to.",
+ "description": "Thread id to remove the participant from.",
"required": true,
"type": "string"
},
{
- "$ref": "#/parameters/ApiVersionParameter"
+ "in": "path",
+ "name": "chatParticipantId",
+ "description": "Id of the thread participant to remove from the thread.",
+ "required": true,
+ "type": "string"
},
{
- "in": "body",
- "name": "addChatParticipantsRequest",
- "description": "Thread participants to be added to the thread.",
- "required": true,
- "schema": {
- "$ref": "#/definitions/AddChatParticipantsRequest"
- }
+ "$ref": "#/parameters/ApiVersionParameter"
}
],
"responses": {
- "201": {
- "description": "The participants were successfully added.",
- "schema": {
- "$ref": "#/definitions/AddChatParticipantsResult"
- }
+ "204": {
+ "description": "Request successful."
},
"401": {
"description": "Unauthorized.",
"schema": {
- "$ref": "#/definitions/Error"
+ "$ref": "#/definitions/ErrorResponse"
},
"x-ms-error-response": true
},
"403": {
"description": "Forbidden.",
"schema": {
- "$ref": "#/definitions/Error"
+ "$ref": "#/definitions/ErrorResponse"
},
"x-ms-error-response": true
},
"429": {
"description": "Too many requests.",
"schema": {
- "$ref": "#/definitions/Error"
+ "$ref": "#/definitions/ErrorResponse"
},
"x-ms-error-response": true
},
"503": {
"description": "Service unavailable.",
"schema": {
- "$ref": "#/definitions/Error"
+ "$ref": "#/definitions/ErrorResponse"
},
"x-ms-error-response": true
}
},
"x-ms-examples": {
- "Add participants": {
- "$ref": "./examples/Participants_AddChatParticipants.json"
+ "Remove participant": {
+ "$ref": "./examples/Participants_RemoveChatParticipant.json"
}
}
}
},
- "/chat/threads/{chatThreadId}/participants/{chatParticipantId}": {
- "delete": {
+ "/chat/threads/{chatThreadId}/participants/:add": {
+ "post": {
"tags": [
"Participants"
],
- "summary": "Remove a participant from a thread.",
- "operationId": "ChatThread_RemoveChatParticipant",
+ "summary": "Adds thread participants to a thread. If participants already exist, no change occurs.",
+ "operationId": "ChatThread_AddChatParticipants",
+ "consumes": [
+ "application/json"
+ ],
"produces": [
"application/json"
],
@@ -771,57 +768,62 @@
{
"in": "path",
"name": "chatThreadId",
- "description": "Thread id to remove the participant from.",
+ "description": "Id of the thread to add participants to.",
"required": true,
"type": "string"
},
{
- "in": "path",
- "name": "chatParticipantId",
- "description": "Id of the thread participant to remove from the thread.",
- "required": true,
- "type": "string"
+ "$ref": "#/parameters/ApiVersionParameter"
},
{
- "$ref": "#/parameters/ApiVersionParameter"
+ "in": "body",
+ "name": "addChatParticipantsRequest",
+ "description": "Thread participants to be added to the thread.",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/AddChatParticipantsRequest"
+ }
}
],
"responses": {
- "204": {
- "description": "Request successful."
+ "201": {
+ "description": "The participants were successfully added.",
+ "schema": {
+ "$ref": "#/definitions/AddChatParticipantsResult"
+ }
},
"401": {
"description": "Unauthorized.",
"schema": {
- "$ref": "#/definitions/Error"
+ "$ref": "#/definitions/ErrorResponse"
},
"x-ms-error-response": true
},
"403": {
"description": "Forbidden.",
"schema": {
- "$ref": "#/definitions/Error"
+ "$ref": "#/definitions/ErrorResponse"
},
"x-ms-error-response": true
},
"429": {
"description": "Too many requests.",
"schema": {
- "$ref": "#/definitions/Error"
+ "$ref": "#/definitions/ErrorResponse"
},
"x-ms-error-response": true
},
"503": {
"description": "Service unavailable.",
"schema": {
- "$ref": "#/definitions/Error"
+ "$ref": "#/definitions/ErrorResponse"
},
"x-ms-error-response": true
}
},
"x-ms-examples": {
- "Remove participant": {
- "$ref": "./examples/Participants_RemoveChatParticipant.json"
+ "Add participants": {
+ "$ref": "./examples/Participants_AddChatParticipants.json"
}
}
}
@@ -869,28 +871,28 @@
"401": {
"description": "Unauthorized.",
"schema": {
- "$ref": "#/definitions/Error"
+ "$ref": "#/definitions/ErrorResponse"
},
"x-ms-error-response": true
},
"403": {
"description": "Forbidden.",
"schema": {
- "$ref": "#/definitions/Error"
+ "$ref": "#/definitions/ErrorResponse"
},
"x-ms-error-response": true
},
"429": {
"description": "Too many requests.",
"schema": {
- "$ref": "#/definitions/Error"
+ "$ref": "#/definitions/ErrorResponse"
},
"x-ms-error-response": true
},
"503": {
"description": "Service unavailable.",
"schema": {
- "$ref": "#/definitions/Error"
+ "$ref": "#/definitions/ErrorResponse"
},
"x-ms-error-response": true
}
@@ -942,28 +944,28 @@
"401": {
"description": "Unauthorized.",
"schema": {
- "$ref": "#/definitions/Error"
+ "$ref": "#/definitions/ErrorResponse"
},
"x-ms-error-response": true
},
"403": {
"description": "Forbidden.",
"schema": {
- "$ref": "#/definitions/Error"
+ "$ref": "#/definitions/ErrorResponse"
},
"x-ms-error-response": true
},
"429": {
"description": "Too many requests.",
"schema": {
- "$ref": "#/definitions/Error"
+ "$ref": "#/definitions/ErrorResponse"
},
"x-ms-error-response": true
},
"503": {
"description": "Service unavailable.",
"schema": {
- "$ref": "#/definitions/Error"
+ "$ref": "#/definitions/ErrorResponse"
},
"x-ms-error-response": true
}
@@ -1020,28 +1022,28 @@
"401": {
"description": "Unauthorized.",
"schema": {
- "$ref": "#/definitions/Error"
+ "$ref": "#/definitions/ErrorResponse"
},
"x-ms-error-response": true
},
"403": {
"description": "Forbidden.",
"schema": {
- "$ref": "#/definitions/Error"
+ "$ref": "#/definitions/ErrorResponse"
},
"x-ms-error-response": true
},
"429": {
"description": "Too many requests.",
"schema": {
- "$ref": "#/definitions/Error"
+ "$ref": "#/definitions/ErrorResponse"
},
"x-ms-error-response": true
},
"503": {
"description": "Service unavailable.",
"schema": {
- "$ref": "#/definitions/Error"
+ "$ref": "#/definitions/ErrorResponse"
},
"x-ms-error-response": true
}
@@ -1083,28 +1085,28 @@
"401": {
"description": "Unauthorized.",
"schema": {
- "$ref": "#/definitions/Error"
+ "$ref": "#/definitions/ErrorResponse"
},
"x-ms-error-response": true
},
"403": {
"description": "Forbidden.",
"schema": {
- "$ref": "#/definitions/Error"
+ "$ref": "#/definitions/ErrorResponse"
},
"x-ms-error-response": true
},
"429": {
"description": "Too many requests.",
"schema": {
- "$ref": "#/definitions/Error"
+ "$ref": "#/definitions/ErrorResponse"
},
"x-ms-error-response": true
},
"503": {
"description": "Service unavailable.",
"schema": {
- "$ref": "#/definitions/Error"
+ "$ref": "#/definitions/ErrorResponse"
},
"x-ms-error-response": true
}
@@ -1143,28 +1145,28 @@
"401": {
"description": "Unauthorized.",
"schema": {
- "$ref": "#/definitions/Error"
+ "$ref": "#/definitions/ErrorResponse"
},
"x-ms-error-response": true
},
"403": {
"description": "Forbidden.",
"schema": {
- "$ref": "#/definitions/Error"
+ "$ref": "#/definitions/ErrorResponse"
},
"x-ms-error-response": true
},
"429": {
"description": "Too many requests.",
"schema": {
- "$ref": "#/definitions/Error"
+ "$ref": "#/definitions/ErrorResponse"
},
"x-ms-error-response": true
},
"503": {
"description": "Service unavailable.",
"schema": {
- "$ref": "#/definitions/Error"
+ "$ref": "#/definitions/ErrorResponse"
},
"x-ms-error-response": true
}
@@ -1180,31 +1182,36 @@
"definitions": {
"ChatMessageReadReceipt": {
"description": "A chat message read receipt indicates the time a chat message was read by a recipient.",
+ "required": [
+ "chatMessageId",
+ "readOn",
+ "senderId"
+ ],
"type": "object",
"properties": {
"senderId": {
"description": "Id of the participant who read the message.",
"type": "string",
- "readOnly": true,
"example": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10b"
},
"chatMessageId": {
"description": "Id of the chat message that has been read. This id is generated by the server.",
"type": "string",
- "readOnly": true,
"example": "1591137790240"
},
"readOn": {
"format": "date-time",
"description": "The time at which the message was read. The timestamp is in RFC3339 format: `yyyy-MM-ddTHH:mm:ssZ`.",
"type": "string",
- "readOnly": true,
"example": "2020-10-30T10:50:50Z"
}
}
},
"ChatMessageReadReceiptsCollection": {
"description": "A paged collection of chat message read receipts.",
+ "required": [
+ "value"
+ ],
"type": "object",
"properties": {
"value": {
@@ -1212,8 +1219,7 @@
"type": "array",
"items": {
"$ref": "#/definitions/ChatMessageReadReceipt"
- },
- "readOnly": true
+ }
},
"nextLink": {
"description": "If there are more chat message read receipts that can be retrieved, the next link will be populated.",
@@ -1223,33 +1229,10 @@
}
},
"Error": {
- "description": "Error encountered while performing an operation.",
- "type": "object",
- "properties": {
- "code": {
- "description": "Error code.",
- "type": "string",
- "readOnly": true
- },
- "message": {
- "description": "Description of the error.",
- "type": "string",
- "readOnly": true
- },
- "target": {
- "description": "If applicable, would be used to indicate the property causing the error.",
- "type": "string",
- "readOnly": true
- },
- "innerErrors": {
- "description": "If applicable, inner errors would be returned for more details on the error.",
- "type": "array",
- "items": {
- "$ref": "#/definitions/Error"
- },
- "readOnly": true
- }
- }
+ "$ref": "../../../Microsoft.CommunicationServicesCommon/preview/2020-11-19-preview1/common.json#/definitions/CommunicationError"
+ },
+ "ErrorResponse": {
+ "$ref": "../../../Microsoft.CommunicationServicesCommon/preview/2020-11-19-preview1/common.json#/definitions/CommunicationErrorResponse"
},
"SendReadReceiptRequest": {
"description": "Request payload for sending a read receipt.",
@@ -1265,15 +1248,18 @@
}
}
},
- "ChatMessagePriority": {
- "description": "The chat message priority.",
+ "ChatMessageType": {
+ "description": "The chat message type.",
"enum": [
- "Normal",
- "High"
+ "text",
+ "html",
+ "topicUpdated",
+ "participantAdded",
+ "participantRemoved"
],
"type": "string",
"x-ms-enum": {
- "name": "ChatMessagePriority",
+ "name": "ChatMessageType",
"modelAsString": true
}
},
@@ -1284,9 +1270,6 @@
],
"type": "object",
"properties": {
- "priority": {
- "$ref": "#/definitions/ChatMessagePriority"
- },
"content": {
"description": "Chat message content.",
"type": "string",
@@ -1296,48 +1279,108 @@
"description": "The display name of the chat message sender. This property is used to populate sender name for push notifications.",
"type": "string",
"example": "Bob Admin"
+ },
+ "type": {
+ "$ref": "#/definitions/ChatMessageType"
}
}
},
"SendChatMessageResult": {
"description": "Result of the send message operation.",
+ "required": [
+ "id"
+ ],
"type": "object",
"properties": {
"id": {
"description": "A server-generated message id.",
"type": "string",
- "readOnly": true,
"example": "123456789"
}
}
},
+ "ChatParticipant": {
+ "description": "A participant of the chat thread.",
+ "required": [
+ "id"
+ ],
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "The id of the chat participant.",
+ "type": "string",
+ "example": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10b"
+ },
+ "displayName": {
+ "description": "Display name for the chat participant.",
+ "type": "string",
+ "example": "Bob"
+ },
+ "shareHistoryTime": {
+ "format": "date-time",
+ "description": "Time from which the chat history is shared with the participant. The timestamp is in RFC3339 format: `yyyy-MM-ddTHH:mm:ssZ`.",
+ "type": "string",
+ "example": "2020-10-30T10:50:50Z"
+ }
+ }
+ },
+ "ChatMessageContent": {
+ "description": "Content of a chat message.",
+ "type": "object",
+ "properties": {
+ "message": {
+ "description": "Chat message content for messages of types text or html.",
+ "type": "string",
+ "example": "Come one guys, lets go for lunch together."
+ },
+ "topic": {
+ "description": "Chat message content for messages of type topicUpdated.",
+ "type": "string",
+ "example": "Lunch Chat thread"
+ },
+ "participants": {
+ "description": "Chat message content for messages of types participantAdded or participantRemoved.",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ChatParticipant"
+ }
+ },
+ "initiator": {
+ "description": "Chat message content for messages of types participantAdded or participantRemoved.",
+ "type": "string",
+ "example": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10b"
+ }
+ }
+ },
"ChatMessage": {
"description": "Chat message.",
+ "required": [
+ "createdOn",
+ "id",
+ "sequenceId",
+ "type",
+ "version"
+ ],
"type": "object",
"properties": {
"id": {
"description": "The id of the chat message. This id is server generated.",
"type": "string",
- "readOnly": true,
"example": "123456789"
},
"type": {
- "description": "Type of the chat message.\r\n \r\nPossible values:\r\n - Text\r\n - ThreadActivity/TopicUpdate\r\n - ThreadActivity/AddMember\r\n - ThreadActivity/DeleteMember",
- "type": "string",
- "example": "Text"
+ "$ref": "#/definitions/ChatMessageType"
},
- "priority": {
- "$ref": "#/definitions/ChatMessagePriority"
+ "sequenceId": {
+ "description": "Sequence of the chat message in the conversation.",
+ "type": "string"
},
"version": {
"description": "Version of the chat message.",
- "type": "string",
- "readOnly": true
+ "type": "string"
},
"content": {
- "description": "Content of the chat message.",
- "type": "string",
- "example": "Come one guys, lets go for lunch together."
+ "$ref": "#/definitions/ChatMessageContent"
},
"senderDisplayName": {
"description": "The display name of the chat message sender. This property is used to populate sender name for push notifications.",
@@ -1348,13 +1391,11 @@
"format": "date-time",
"description": "The timestamp when the chat message arrived at the server. The timestamp is in RFC3339 format: `yyyy-MM-ddTHH:mm:ssZ`.",
"type": "string",
- "readOnly": true,
"example": "2020-10-30T10:50:50Z"
},
"senderId": {
"description": "The id of the chat message sender.",
"type": "string",
- "readOnly": true,
"example": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10b"
},
"deletedOn": {
@@ -1373,6 +1414,9 @@
},
"ChatMessagesCollection": {
"description": "Collection of chat messages for a particular chat thread.",
+ "required": [
+ "value"
+ ],
"type": "object",
"properties": {
"value": {
@@ -1380,8 +1424,7 @@
"type": "array",
"items": {
"$ref": "#/definitions/ChatMessage"
- },
- "readOnly": true
+ }
},
"nextLink": {
"description": "If there are more chat messages that can be retrieved, the next link will be populated.",
@@ -1398,39 +1441,14 @@
"description": "Chat message content.",
"type": "string",
"example": "Let's go for lunch together."
- },
- "priority": {
- "$ref": "#/definitions/ChatMessagePriority"
- }
- }
- },
- "ChatParticipant": {
- "description": "A participant of the chat thread.",
- "required": [
- "id"
- ],
- "type": "object",
- "properties": {
- "id": {
- "description": "The id of the chat participant.",
- "type": "string",
- "example": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10b"
- },
- "displayName": {
- "description": "Display name for the chat participant.",
- "type": "string",
- "example": "Bob"
- },
- "shareHistoryTime": {
- "format": "date-time",
- "description": "Time from which the chat history is shared with the participant. The timestamp is in RFC3339 format: `yyyy-MM-ddTHH:mm:ssZ`.",
- "type": "string",
- "example": "2020-10-30T10:50:50Z"
}
}
},
"ChatParticipantsCollection": {
"description": "Collection of participants belong to a particular thread.",
+ "required": [
+ "value"
+ ],
"type": "object",
"properties": {
"value": {
@@ -1465,6 +1483,9 @@
},
"AddChatParticipantsErrors": {
"description": "Errors encountered during the addition of the chat participant to the chat thread.",
+ "required": [
+ "invalidParticipants"
+ ],
"type": "object",
"properties": {
"invalidParticipants": {
@@ -1472,8 +1493,7 @@
"type": "array",
"items": {
"$ref": "#/definitions/Error"
- },
- "readOnly": true
+ }
}
}
},
@@ -1510,12 +1530,17 @@
},
"ChatThread": {
"description": "Chat thread.",
+ "required": [
+ "createdBy",
+ "createdOn",
+ "id",
+ "topic"
+ ],
"type": "object",
"properties": {
"id": {
"description": "Chat thread id.",
"type": "string",
- "readOnly": true,
"example": "19:uni01_uy5ucb66ugp3lrhe7pxso6xx4hsmm3dl6eyjfefv2n6x3rrurpea@thread.v2"
},
"topic": {
@@ -1527,13 +1552,11 @@
"format": "date-time",
"description": "The timestamp when the chat thread was created. The timestamp is in RFC3339 format: `yyyy-MM-ddTHH:mm:ssZ`.",
"type": "string",
- "readOnly": true,
"example": "2020-10-30T10:50:50Z"
},
"createdBy": {
"description": "Id of the chat thread owner.",
"type": "string",
- "readOnly": true,
"example": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10b"
},
"deletedOn": {
@@ -1572,12 +1595,15 @@
},
"ChatThreadInfo": {
"description": "Summary information of a chat thread.",
+ "required": [
+ "id",
+ "topic"
+ ],
"type": "object",
"properties": {
"id": {
"description": "Chat thread id.",
"type": "string",
- "readOnly": true,
"example": "19:uni01_uy5ucb66ugp3lrhe7pxso6xx4hsmm3dl6eyjfefv2n6x3rrurpea@thread.v2"
},
"topic": {
@@ -1602,6 +1628,9 @@
},
"ChatThreadsInfoCollection": {
"description": "Collection of chat threads.",
+ "required": [
+ "value"
+ ],
"type": "object",
"properties": {
"value": {
@@ -1609,8 +1638,7 @@
"type": "array",
"items": {
"$ref": "#/definitions/ChatThreadInfo"
- },
- "readOnly": true
+ }
},
"nextLink": {
"description": "If there are more chat threads that can be retrieved, the next link will be populated.",
diff --git a/specification/communication/data-plane/Microsoft.CommunicationServicesChat/preview/2020-11-01-preview3/examples/Conversations_ListChatReadReceiptsWithPageSize.json b/specification/communication/data-plane/Microsoft.CommunicationServicesChat/preview/2020-11-01-preview3/examples/Conversations_ListChatReadReceiptsWithPageSize.json
index fc5df4ecc008..80f56bbe0151 100644
--- a/specification/communication/data-plane/Microsoft.CommunicationServicesChat/preview/2020-11-01-preview3/examples/Conversations_ListChatReadReceiptsWithPageSize.json
+++ b/specification/communication/data-plane/Microsoft.CommunicationServicesChat/preview/2020-11-01-preview3/examples/Conversations_ListChatReadReceiptsWithPageSize.json
@@ -3,7 +3,7 @@
"endpoint": "https://contoso.westus.communications.azure.com",
"api-version": "2020-11-01-preview3",
"chatThreadId": "19:uni01_zbnh3nt2dfuffezc3sox7dog7wfhk6y5qe2rwlnfhlhdzirihdpq@thread.v2",
- "$maxpagesize": 2
+ "maxPageSize": 2
},
"responses": {
"200": {
@@ -20,31 +20,39 @@
"readOn": "2020-06-06T05:55:41.6460000Z"
}
],
- "nextLink": "https://contoso.westus.communications.azure.com/chat/threads/19:453dafb77b26481ea2e73bcada0324af@thread.v2/readReceipts?skip=2&$maxpagesize=2&api-version=2020-11-01-preview3"
+ "nextLink": "https://contoso.westus.communications.azure.com/chat/threads/19:453dafb77b26481ea2e73bcada0324af@thread.v2/readReceipts?skip=2&maxPageSize=2&api-version=2020-11-01-preview3"
}
},
"401": {
"body": {
- "code": "Unauthorized",
- "message": "Request is not authorized."
+ "error": {
+ "code": "Unauthorized",
+ "message": "Request is not authorized."
+ }
}
},
"403": {
"body": {
- "code": "Forbidden",
- "message": "User is not allowed to perform specified action."
+ "error": {
+ "code": "Forbidden",
+ "message": "User is not allowed to perform specified action."
+ }
}
},
"429": {
"body": {
- "code": "TooManyRequests",
- "message": "Rate limit exceeded."
+ "error": {
+ "code": "TooManyRequests",
+ "message": "Rate limit exceeded."
+ }
}
},
"503": {
"body": {
- "code": "ServiceUnavailable",
- "message": "The server is currently unable to handle the request."
+ "error": {
+ "code": "ServiceUnavailable",
+ "message": "The server is currently unable to handle the request."
+ }
}
}
}
diff --git a/specification/communication/data-plane/Microsoft.CommunicationServicesChat/preview/2020-11-01-preview3/examples/Conversations_SendChatReadReceipt.json b/specification/communication/data-plane/Microsoft.CommunicationServicesChat/preview/2020-11-01-preview3/examples/Conversations_SendChatReadReceipt.json
index 080f838cca60..585558649226 100644
--- a/specification/communication/data-plane/Microsoft.CommunicationServicesChat/preview/2020-11-01-preview3/examples/Conversations_SendChatReadReceipt.json
+++ b/specification/communication/data-plane/Microsoft.CommunicationServicesChat/preview/2020-11-01-preview3/examples/Conversations_SendChatReadReceipt.json
@@ -8,29 +8,37 @@
}
},
"responses": {
- "201": {},
+ "200": {},
"401": {
"body": {
- "code": "Unauthorized",
- "message": "Request is not authorized."
+ "error": {
+ "code": "Unauthorized",
+ "message": "Request is not authorized."
+ }
}
},
"403": {
"body": {
- "code": "Forbidden",
- "message": "User is not allowed to perform specified action."
+ "error": {
+ "code": "Forbidden",
+ "message": "User is not allowed to perform specified action."
+ }
}
},
"429": {
"body": {
- "code": "TooManyRequests",
- "message": "Rate limit exceeded."
+ "error": {
+ "code": "TooManyRequests",
+ "message": "Rate limit exceeded."
+ }
}
},
"503": {
"body": {
- "code": "ServiceUnavailable",
- "message": "The server is currently unable to handle the request."
+ "error": {
+ "code": "ServiceUnavailable",
+ "message": "The server is currently unable to handle the request."
+ }
}
}
}
diff --git a/specification/communication/data-plane/Microsoft.CommunicationServicesChat/preview/2020-11-01-preview3/examples/Messages_DeleteChatMessage.json b/specification/communication/data-plane/Microsoft.CommunicationServicesChat/preview/2020-11-01-preview3/examples/Messages_DeleteChatMessage.json
index 546a568cb910..9e6f5c841885 100644
--- a/specification/communication/data-plane/Microsoft.CommunicationServicesChat/preview/2020-11-01-preview3/examples/Messages_DeleteChatMessage.json
+++ b/specification/communication/data-plane/Microsoft.CommunicationServicesChat/preview/2020-11-01-preview3/examples/Messages_DeleteChatMessage.json
@@ -9,26 +9,34 @@
"204": {},
"401": {
"body": {
- "code": "Unauthorized",
- "message": "Request is not authorized."
+ "error": {
+ "code": "Unauthorized",
+ "message": "Request is not authorized."
+ }
}
},
"403": {
"body": {
- "code": "Forbidden",
- "message": "User is not allowed to perform specified action."
+ "error": {
+ "code": "Forbidden",
+ "message": "User is not allowed to perform specified action."
+ }
}
},
"429": {
"body": {
- "code": "TooManyRequests",
- "message": "Rate limit exceeded."
+ "error": {
+ "code": "TooManyRequests",
+ "message": "Rate limit exceeded."
+ }
}
},
"503": {
"body": {
- "code": "ServiceUnavailable",
- "message": "The server is currently unable to handle the request."
+ "error": {
+ "code": "ServiceUnavailable",
+ "message": "The server is currently unable to handle the request."
+ }
}
}
}
diff --git a/specification/communication/data-plane/Microsoft.CommunicationServicesChat/preview/2020-11-01-preview3/examples/Messages_GetChatMessage.json b/specification/communication/data-plane/Microsoft.CommunicationServicesChat/preview/2020-11-01-preview3/examples/Messages_GetChatMessage.json
index ca7d28887a95..d4ebec2f45df 100644
--- a/specification/communication/data-plane/Microsoft.CommunicationServicesChat/preview/2020-11-01-preview3/examples/Messages_GetChatMessage.json
+++ b/specification/communication/data-plane/Microsoft.CommunicationServicesChat/preview/2020-11-01-preview3/examples/Messages_GetChatMessage.json
@@ -9,10 +9,12 @@
"200": {
"body": {
"id": "1591768249318",
- "type": "Text",
+ "sequenceId": "1",
+ "type": "text",
"version": "1599016601134",
- "priority": "Normal",
- "content": "Let's head out for lunch in 15 minutes.",
+ "content": {
+ "message": "Let's head out for lunch in 15 minutes."
+ },
"senderDisplayName": "Jane",
"createdOn": "2020-06-10T05:50:49.3180000Z",
"senderId": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10b"
@@ -20,26 +22,34 @@
},
"401": {
"body": {
- "code": "Unauthorized",
- "message": "Request is not authorized."
+ "error": {
+ "code": "Unauthorized",
+ "message": "Request is not authorized."
+ }
}
},
"403": {
"body": {
- "code": "Forbidden",
- "message": "User is not allowed to perform specified action."
+ "error": {
+ "code": "Forbidden",
+ "message": "User is not allowed to perform specified action."
+ }
}
},
"429": {
"body": {
- "code": "TooManyRequests",
- "message": "Rate limit exceeded."
+ "error": {
+ "code": "TooManyRequests",
+ "message": "Rate limit exceeded."
+ }
}
},
"503": {
"body": {
- "code": "ServiceUnavailable",
- "message": "The server is currently unable to handle the request."
+ "error": {
+ "code": "ServiceUnavailable",
+ "message": "The server is currently unable to handle the request."
+ }
}
}
}
diff --git a/specification/communication/data-plane/Microsoft.CommunicationServicesChat/preview/2020-11-01-preview3/examples/Messages_ListChatMessagesWithPageSize.json b/specification/communication/data-plane/Microsoft.CommunicationServicesChat/preview/2020-11-01-preview3/examples/Messages_ListChatMessagesWithPageSize.json
index c825859167b9..9d494c3ce43b 100644
--- a/specification/communication/data-plane/Microsoft.CommunicationServicesChat/preview/2020-11-01-preview3/examples/Messages_ListChatMessagesWithPageSize.json
+++ b/specification/communication/data-plane/Microsoft.CommunicationServicesChat/preview/2020-11-01-preview3/examples/Messages_ListChatMessagesWithPageSize.json
@@ -3,7 +3,7 @@
"endpoint": "https://contoso.westus.communications.azure.com",
"api-version": "2020-11-01-preview3",
"chatThreadId": "19:453dafb77b26481ea2e73bcada0324af@thread.v2",
- "$maxpagesize": 5
+ "maxPageSize": 5
},
"responses": {
"200": {
@@ -11,78 +11,106 @@
"value": [
{
"id": "1593107077690",
- "type": "Text",
- "priority": "Normal",
+ "type": "text",
"version": "1593107077683",
- "content": "So where should we get lunch from today?",
+ "sequenceId": "5",
+ "content": {
+ "message": "So where should we get lunch from today?"
+ },
"senderDisplayName": "Jane",
"createdOn": "2020-06-25T17:44:37.6830000Z",
"senderId": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10b"
},
{
"id": "1593107077683",
- "type": "Text",
- "priority": "Normal",
+ "type": "text",
+ "sequenceId": "4",
"version": "1593107077683",
- "content": "Let's use this chat to decide what to get for lunch today.",
+ "content": {
+ "message": "Let's use this chat to decide what to get for lunch today."
+ },
"senderDisplayName": "Jane",
"createdOn": "2020-06-25T17:44:37.6830000Z",
"senderId": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10b"
},
{
"id": "1593107046498",
- "type": "Text",
- "priority": "Normal",
+ "type": "text",
+ "sequenceId": "3",
"version": "1593107046498",
- "content": "Good morning everyone!",
+ "content": {
+ "message": "Good morning everyone!"
+ },
"senderDisplayName": "Jane",
"createdOn": "2020-06-25T17:44:06.4980000Z",
"senderId": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10b"
},
{
"id": "1593106976785",
- "type": "ThreadActivity/TopicUpdate",
- "priority": "Normal",
+ "type": "topicUpdated",
+ "sequenceId": "2",
"version": "1593106976785",
- "content": "15931069767858:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10bLunch",
- "createdOn": "2020-06-25T17:42:56.7850000Z",
- "senderId": "19:453dafb77b26481ea2e73bcada0324af@thread.v2"
+ "content": {
+ "initiator": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10b",
+ "topic": "Lunch"
+ },
+ "createdOn": "2020-06-25T17:42:56.7850000Z"
},
{
"id": "1593106976753",
- "type": "ThreadActivity/AddMember",
- "priority": "Normal",
+ "type": "participantAdded",
"version": "1593106976753",
- "content": "15931069767538:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10b15931069765668:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10a8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10a8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10b8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10b8:acs:29d8ac59-6011-44dc-87c0-1f9f93dbc713_2a711a-6c8ffcdc418:acs:29d8ac59-6011-44dc-87c0-1f9f93dbc713_2a711a-6c8ffcdc418:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10c8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10c",
- "createdOn": "2020-06-25T17:42:56.7530000Z",
- "senderId": "19:453dafb77b26481ea2e73bcada0324af@thread.v2"
+ "sequenceId": "1",
+ "content": {
+ "initiator": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10a",
+ "participants": [
+ {
+ "id": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10b"
+ },
+ {
+ "id": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10c"
+ },
+ {
+ "id": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10d"
+ }
+ ]
+ },
+ "createdOn": "2020-06-25T17:42:56.7530000Z"
}
],
- "nextLink": "https://contoso.westus.communications.azure.com/chat/threads/19:453dafb77b26481ea2e73bcada0324af@thread.v2/messages?syncState=3e4700000031393a756e6930315f7a626e68336e74326466756666657a6333736f7837646f67377766686b36793571653272776c6e66686c68647a69726968647071407468726561642e763201451fe6e77201000004357fea72010000&startTime=0&$maxpagesize=5&api-version=2020-11-01-preview3"
+ "nextLink": "https://contoso.westus.communications.azure.com/chat/threads/19:453dafb77b26481ea2e73bcada0324af@thread.v2/messages?syncState=3e4700000031393a756e6930315f7a626e68336e74326466756666657a6333736f7837646f67377766686b36793571653272776c6e66686c68647a69726968647071407468726561642e763201451fe6e77201000004357fea72010000&startTime=0&maxPageSize=5&api-version=2020-11-01-preview3"
}
},
"401": {
"body": {
- "code": "Unauthorized",
- "message": "Request is not authorized."
+ "error": {
+ "code": "Unauthorized",
+ "message": "Request is not authorized."
+ }
}
},
"403": {
"body": {
- "code": "Forbidden",
- "message": "User is not allowed to perform specified action."
+ "error": {
+ "code": "Forbidden",
+ "message": "User is not allowed to perform specified action."
+ }
}
},
"429": {
"body": {
- "code": "TooManyRequests",
- "message": "Rate limit exceeded."
+ "error": {
+ "code": "TooManyRequests",
+ "message": "Rate limit exceeded."
+ }
}
},
"503": {
"body": {
- "code": "ServiceUnavailable",
- "message": "The server is currently unable to handle the request."
+ "error": {
+ "code": "ServiceUnavailable",
+ "message": "The server is currently unable to handle the request."
+ }
}
}
}
diff --git a/specification/communication/data-plane/Microsoft.CommunicationServicesChat/preview/2020-11-01-preview3/examples/Messages_SendChatMessage.json b/specification/communication/data-plane/Microsoft.CommunicationServicesChat/preview/2020-11-01-preview3/examples/Messages_SendChatMessage.json
index cf54f781ca1e..dcab6b0f2f5c 100644
--- a/specification/communication/data-plane/Microsoft.CommunicationServicesChat/preview/2020-11-01-preview3/examples/Messages_SendChatMessage.json
+++ b/specification/communication/data-plane/Microsoft.CommunicationServicesChat/preview/2020-11-01-preview3/examples/Messages_SendChatMessage.json
@@ -4,7 +4,6 @@
"api-version": "2020-11-01-preview3",
"chatThreadId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
"sendChatMessageRequest": {
- "priority": "Normal",
"content": "Let's head out for lunch in 15 minutes.",
"senderDisplayName": "Jane"
}
@@ -20,26 +19,34 @@
},
"401": {
"body": {
- "code": "Unauthorized",
- "message": "Request is not authorized."
+ "error": {
+ "code": "Unauthorized",
+ "message": "Request is not authorized."
+ }
}
},
"403": {
"body": {
- "code": "Forbidden",
- "message": "User is not allowed to perform specified action."
+ "error": {
+ "code": "Forbidden",
+ "message": "User is not allowed to perform specified action."
+ }
}
},
"429": {
"body": {
- "code": "TooManyRequests",
- "message": "Rate limit exceeded."
+ "error": {
+ "code": "TooManyRequests",
+ "message": "Rate limit exceeded."
+ }
}
},
"503": {
"body": {
- "code": "ServiceUnavailable",
- "message": "The server is currently unable to handle the request."
+ "error": {
+ "code": "ServiceUnavailable",
+ "message": "The server is currently unable to handle the request."
+ }
}
}
}
diff --git a/specification/communication/data-plane/Microsoft.CommunicationServicesChat/preview/2020-11-01-preview3/examples/Messages_SendTypingNotification.json b/specification/communication/data-plane/Microsoft.CommunicationServicesChat/preview/2020-11-01-preview3/examples/Messages_SendTypingNotification.json
index 91a4b52d062c..1235b49e8a3c 100644
--- a/specification/communication/data-plane/Microsoft.CommunicationServicesChat/preview/2020-11-01-preview3/examples/Messages_SendTypingNotification.json
+++ b/specification/communication/data-plane/Microsoft.CommunicationServicesChat/preview/2020-11-01-preview3/examples/Messages_SendTypingNotification.json
@@ -9,26 +9,34 @@
"200": {},
"401": {
"body": {
- "code": "Unauthorized",
- "message": "Request is not authorized."
+ "error": {
+ "code": "Unauthorized",
+ "message": "Request is not authorized."
+ }
}
},
"403": {
"body": {
- "code": "Forbidden",
- "message": "User is not allowed to perform specified action."
+ "error": {
+ "code": "Forbidden",
+ "message": "User is not allowed to perform specified action."
+ }
}
},
"429": {
"body": {
- "code": "TooManyRequests",
- "message": "Rate limit exceeded."
+ "error": {
+ "code": "TooManyRequests",
+ "message": "Rate limit exceeded."
+ }
}
},
"503": {
"body": {
- "code": "ServiceUnavailable",
- "message": "The server is currently unable to handle the request."
+ "error": {
+ "code": "ServiceUnavailable",
+ "message": "The server is currently unable to handle the request."
+ }
}
}
}
diff --git a/specification/communication/data-plane/Microsoft.CommunicationServicesChat/preview/2020-11-01-preview3/examples/Messages_UpdateChatMessage.json b/specification/communication/data-plane/Microsoft.CommunicationServicesChat/preview/2020-11-01-preview3/examples/Messages_UpdateChatMessage.json
index 510302aaaa28..1ecad397448f 100644
--- a/specification/communication/data-plane/Microsoft.CommunicationServicesChat/preview/2020-11-01-preview3/examples/Messages_UpdateChatMessage.json
+++ b/specification/communication/data-plane/Microsoft.CommunicationServicesChat/preview/2020-11-01-preview3/examples/Messages_UpdateChatMessage.json
@@ -13,26 +13,34 @@
"204": {},
"401": {
"body": {
- "code": "Unauthorized",
- "message": "Request is not authorized."
+ "error": {
+ "code": "Unauthorized",
+ "message": "Request is not authorized."
+ }
}
},
"403": {
"body": {
- "code": "Forbidden",
- "message": "User is not allowed to perform specified action."
+ "error": {
+ "code": "Forbidden",
+ "message": "User is not allowed to perform specified action."
+ }
}
},
"429": {
"body": {
- "code": "TooManyRequests",
- "message": "Rate limit exceeded."
+ "error": {
+ "code": "TooManyRequests",
+ "message": "Rate limit exceeded."
+ }
}
},
"503": {
"body": {
- "code": "ServiceUnavailable",
- "message": "The server is currently unable to handle the request."
+ "error": {
+ "code": "ServiceUnavailable",
+ "message": "The server is currently unable to handle the request."
+ }
}
}
}
diff --git a/specification/communication/data-plane/Microsoft.CommunicationServicesChat/preview/2020-11-01-preview3/examples/Participants_AddChatParticipants.json b/specification/communication/data-plane/Microsoft.CommunicationServicesChat/preview/2020-11-01-preview3/examples/Participants_AddChatParticipants.json
index 46f81f00db33..615aa7e1112d 100644
--- a/specification/communication/data-plane/Microsoft.CommunicationServicesChat/preview/2020-11-01-preview3/examples/Participants_AddChatParticipants.json
+++ b/specification/communication/data-plane/Microsoft.CommunicationServicesChat/preview/2020-11-01-preview3/examples/Participants_AddChatParticipants.json
@@ -44,26 +44,34 @@
},
"401": {
"body": {
- "code": "Unauthorized",
- "message": "Request is not authorized."
+ "error": {
+ "code": "Unauthorized",
+ "message": "Request is not authorized."
+ }
}
},
"403": {
"body": {
- "code": "Forbidden",
- "message": "User is not allowed to perform specified action."
+ "error": {
+ "code": "Forbidden",
+ "message": "User is not allowed to perform specified action."
+ }
}
},
"429": {
"body": {
- "code": "TooManyRequests",
- "message": "Rate limit exceeded."
+ "error": {
+ "code": "TooManyRequests",
+ "message": "Rate limit exceeded."
+ }
}
},
"503": {
"body": {
- "code": "ServiceUnavailable",
- "message": "The server is currently unable to handle the request."
+ "error": {
+ "code": "ServiceUnavailable",
+ "message": "The server is currently unable to handle the request."
+ }
}
}
}
diff --git a/specification/communication/data-plane/Microsoft.CommunicationServicesChat/preview/2020-11-01-preview3/examples/Participants_ListChatParticipantsWithPageSize.json b/specification/communication/data-plane/Microsoft.CommunicationServicesChat/preview/2020-11-01-preview3/examples/Participants_ListChatParticipantsWithPageSize.json
index c4d504569065..a3c7996252f7 100644
--- a/specification/communication/data-plane/Microsoft.CommunicationServicesChat/preview/2020-11-01-preview3/examples/Participants_ListChatParticipantsWithPageSize.json
+++ b/specification/communication/data-plane/Microsoft.CommunicationServicesChat/preview/2020-11-01-preview3/examples/Participants_ListChatParticipantsWithPageSize.json
@@ -3,7 +3,7 @@
"endpoint": "https://contoso.westus.communications.azure.com",
"api-version": "2020-11-01-preview3",
"chatThreadId": "19:f2167429acf6482880c6b7790a9086c1@thread.v2",
- "$maxpagesize": 2
+ "maxPageSize": 2
},
"responses": {
"200": {
@@ -20,31 +20,39 @@
"shareHistoryTime": "2020-06-06T05:55:41Z"
}
],
- "nextLink": "https://contoso.westus.communications.azure.com/chat/threads/19:453dafb77b26481ea2e73bcada0324af@thread.v2/participants?skip=2&$maxpagesize=2&api-version=2020-11-01-preview3"
+ "nextLink": "https://contoso.westus.communications.azure.com/chat/threads/19:453dafb77b26481ea2e73bcada0324af@thread.v2/participants?skip=2&maxPageSize=2&api-version=2020-11-01-preview3"
}
},
"401": {
"body": {
- "code": "Unauthorized",
- "message": "Request is not authorized."
+ "error": {
+ "code": "Unauthorized",
+ "message": "Request is not authorized."
+ }
}
},
"403": {
"body": {
- "code": "Forbidden",
- "message": "User is not allowed to perform specified action."
+ "error": {
+ "code": "Forbidden",
+ "message": "User is not allowed to perform specified action."
+ }
}
},
"429": {
"body": {
- "code": "TooManyRequests",
- "message": "Rate limit exceeded."
+ "error": {
+ "code": "TooManyRequests",
+ "message": "Rate limit exceeded."
+ }
}
},
"503": {
"body": {
- "code": "ServiceUnavailable",
- "message": "The server is currently unable to handle the request."
+ "error": {
+ "code": "ServiceUnavailable",
+ "message": "The server is currently unable to handle the request."
+ }
}
}
}
diff --git a/specification/communication/data-plane/Microsoft.CommunicationServicesChat/preview/2020-11-01-preview3/examples/Participants_RemoveChatParticipant.json b/specification/communication/data-plane/Microsoft.CommunicationServicesChat/preview/2020-11-01-preview3/examples/Participants_RemoveChatParticipant.json
index 40d818dbc955..e57bb8730399 100644
--- a/specification/communication/data-plane/Microsoft.CommunicationServicesChat/preview/2020-11-01-preview3/examples/Participants_RemoveChatParticipant.json
+++ b/specification/communication/data-plane/Microsoft.CommunicationServicesChat/preview/2020-11-01-preview3/examples/Participants_RemoveChatParticipant.json
@@ -9,26 +9,34 @@
"204": {},
"401": {
"body": {
- "code": "Unauthorized",
- "message": "Request is not authorized."
+ "error": {
+ "code": "Unauthorized",
+ "message": "Request is not authorized."
+ }
}
},
"403": {
"body": {
- "code": "Forbidden",
- "message": "User is not allowed to perform specified action."
+ "error": {
+ "code": "Forbidden",
+ "message": "User is not allowed to perform specified action."
+ }
}
},
"429": {
"body": {
- "code": "TooManyRequests",
- "message": "Rate limit exceeded."
+ "error": {
+ "code": "TooManyRequests",
+ "message": "Rate limit exceeded."
+ }
}
},
"503": {
"body": {
- "code": "ServiceUnavailable",
- "message": "The server is currently unable to handle the request."
+ "error": {
+ "code": "ServiceUnavailable",
+ "message": "The server is currently unable to handle the request."
+ }
}
}
}
diff --git a/specification/communication/data-plane/Microsoft.CommunicationServicesChat/preview/2020-11-01-preview3/examples/Threads_CreateChatThread.json b/specification/communication/data-plane/Microsoft.CommunicationServicesChat/preview/2020-11-01-preview3/examples/Threads_CreateChatThread.json
index 48bde41c8db1..dc93d3f4688e 100644
--- a/specification/communication/data-plane/Microsoft.CommunicationServicesChat/preview/2020-11-01-preview3/examples/Threads_CreateChatThread.json
+++ b/specification/communication/data-plane/Microsoft.CommunicationServicesChat/preview/2020-11-01-preview3/examples/Threads_CreateChatThread.json
@@ -54,26 +54,34 @@
},
"401": {
"body": {
- "code": "Unauthorized",
- "message": "Request is not authorized."
+ "error": {
+ "code": "Unauthorized",
+ "message": "Request is not authorized."
+ }
}
},
"403": {
"body": {
- "code": "Forbidden",
- "message": "User is not allowed to perform specified action."
+ "error": {
+ "code": "Forbidden",
+ "message": "User is not allowed to perform specified action."
+ }
}
},
"429": {
"body": {
- "code": "TooManyRequests",
- "message": "Rate limit exceeded."
+ "error": {
+ "code": "TooManyRequests",
+ "message": "Rate limit exceeded."
+ }
}
},
"503": {
"body": {
- "code": "ServiceUnavailable",
- "message": "The server is currently unable to handle the request."
+ "error": {
+ "code": "ServiceUnavailable",
+ "message": "The server is currently unable to handle the request."
+ }
}
}
}
diff --git a/specification/communication/data-plane/Microsoft.CommunicationServicesChat/preview/2020-11-01-preview3/examples/Threads_CreateChatThreadWithRepeatabilityRequestId.json b/specification/communication/data-plane/Microsoft.CommunicationServicesChat/preview/2020-11-01-preview3/examples/Threads_CreateChatThreadWithRepeatabilityRequestId.json
index 048e1328c231..7b3b785ede4c 100644
--- a/specification/communication/data-plane/Microsoft.CommunicationServicesChat/preview/2020-11-01-preview3/examples/Threads_CreateChatThreadWithRepeatabilityRequestId.json
+++ b/specification/communication/data-plane/Microsoft.CommunicationServicesChat/preview/2020-11-01-preview3/examples/Threads_CreateChatThreadWithRepeatabilityRequestId.json
@@ -55,26 +55,34 @@
},
"401": {
"body": {
- "code": "Unauthorized",
- "message": "Request is not authorized."
+ "error": {
+ "code": "Unauthorized",
+ "message": "Request is not authorized."
+ }
}
},
"403": {
"body": {
- "code": "Forbidden",
- "message": "User is not allowed to perform specified action."
+ "error": {
+ "code": "Forbidden",
+ "message": "User is not allowed to perform specified action."
+ }
}
},
"429": {
"body": {
- "code": "TooManyRequests",
- "message": "Rate limit exceeded."
+ "error": {
+ "code": "TooManyRequests",
+ "message": "Rate limit exceeded."
+ }
}
},
"503": {
"body": {
- "code": "ServiceUnavailable",
- "message": "The server is currently unable to handle the request."
+ "error": {
+ "code": "ServiceUnavailable",
+ "message": "The server is currently unable to handle the request."
+ }
}
}
}
diff --git a/specification/communication/data-plane/Microsoft.CommunicationServicesChat/preview/2020-11-01-preview3/examples/Threads_DeleteChatThread.json b/specification/communication/data-plane/Microsoft.CommunicationServicesChat/preview/2020-11-01-preview3/examples/Threads_DeleteChatThread.json
index 8ae6be923504..5831e047f7a4 100644
--- a/specification/communication/data-plane/Microsoft.CommunicationServicesChat/preview/2020-11-01-preview3/examples/Threads_DeleteChatThread.json
+++ b/specification/communication/data-plane/Microsoft.CommunicationServicesChat/preview/2020-11-01-preview3/examples/Threads_DeleteChatThread.json
@@ -8,26 +8,34 @@
"204": {},
"401": {
"body": {
- "code": "Unauthorized",
- "message": "Request is not authorized."
+ "error": {
+ "code": "Unauthorized",
+ "message": "Request is not authorized."
+ }
}
},
"403": {
"body": {
- "code": "Forbidden",
- "message": "User is not allowed to perform specified action."
+ "error": {
+ "code": "Forbidden",
+ "message": "User is not allowed to perform specified action."
+ }
}
},
"429": {
"body": {
- "code": "TooManyRequests",
- "message": "Rate limit exceeded."
+ "error": {
+ "code": "TooManyRequests",
+ "message": "Rate limit exceeded."
+ }
}
},
"503": {
"body": {
- "code": "ServiceUnavailable",
- "message": "The server is currently unable to handle the request."
+ "error": {
+ "code": "ServiceUnavailable",
+ "message": "The server is currently unable to handle the request."
+ }
}
}
}
diff --git a/specification/communication/data-plane/Microsoft.CommunicationServicesChat/preview/2020-11-01-preview3/examples/Threads_GetChatThread.json b/specification/communication/data-plane/Microsoft.CommunicationServicesChat/preview/2020-11-01-preview3/examples/Threads_GetChatThread.json
index 2b4fcc5f0476..1ac5cf5702d8 100644
--- a/specification/communication/data-plane/Microsoft.CommunicationServicesChat/preview/2020-11-01-preview3/examples/Threads_GetChatThread.json
+++ b/specification/communication/data-plane/Microsoft.CommunicationServicesChat/preview/2020-11-01-preview3/examples/Threads_GetChatThread.json
@@ -15,26 +15,34 @@
},
"401": {
"body": {
- "code": "Unauthorized",
- "message": "Request is not authorized."
+ "error": {
+ "code": "Unauthorized",
+ "message": "Request is not authorized."
+ }
}
},
"403": {
"body": {
- "code": "Forbidden",
- "message": "User is not allowed to perform specified action."
+ "error": {
+ "code": "Forbidden",
+ "message": "User is not allowed to perform specified action."
+ }
}
},
"429": {
"body": {
- "code": "TooManyRequests",
- "message": "Rate limit exceeded."
+ "error": {
+ "code": "TooManyRequests",
+ "message": "Rate limit exceeded."
+ }
}
},
"503": {
"body": {
- "code": "ServiceUnavailable",
- "message": "The server is currently unable to handle the request."
+ "error": {
+ "code": "ServiceUnavailable",
+ "message": "The server is currently unable to handle the request."
+ }
}
}
}
diff --git a/specification/communication/data-plane/Microsoft.CommunicationServicesChat/preview/2020-11-01-preview3/examples/Threads_ListChatThreadsWithPageSize.json b/specification/communication/data-plane/Microsoft.CommunicationServicesChat/preview/2020-11-01-preview3/examples/Threads_ListChatThreadsWithPageSize.json
index 661b9f1d5923..86f1bc544733 100644
--- a/specification/communication/data-plane/Microsoft.CommunicationServicesChat/preview/2020-11-01-preview3/examples/Threads_ListChatThreadsWithPageSize.json
+++ b/specification/communication/data-plane/Microsoft.CommunicationServicesChat/preview/2020-11-01-preview3/examples/Threads_ListChatThreadsWithPageSize.json
@@ -2,7 +2,7 @@
"parameters": {
"endpoint": "https://contoso.westus.communications.azure.com",
"api-version": "2020-11-01-preview3",
- "$maxpagesize": 5
+ "maxPageSize": 5
},
"responses": {
"200": {
@@ -35,31 +35,39 @@
"lastMessageReceivedOn": "2020-06-06T05:55:41.6460000Z"
}
],
- "nextLink": "https://contoso.westus.communications.azure.com/chat/threads?syncState=W3sic3RhcnQiOiIyMDIwLTA2LTIzVDIzOjMyOjQ3LjMwNSswMDowMCIsImVuZCI6IjIwMjAtMDYtMjVUMDY6NTY6MjMuNjk2KzAwOjAwIn0seyJzdGFydCI6IjE5NzAtMDEtMDFUMDA6MDA6MDArMDA6MDAiLCJlbmQiOiIxOTcwLTAxLTAxVDAwOjAwOjAwKzAwOjAwIn1d&api-version=2020-11-01-preview3&$maxpagesize=5"
+ "nextLink": "https://contoso.westus.communications.azure.com/chat/threads?syncState=W3sic3RhcnQiOiIyMDIwLTA2LTIzVDIzOjMyOjQ3LjMwNSswMDowMCIsImVuZCI6IjIwMjAtMDYtMjVUMDY6NTY6MjMuNjk2KzAwOjAwIn0seyJzdGFydCI6IjE5NzAtMDEtMDFUMDA6MDA6MDArMDA6MDAiLCJlbmQiOiIxOTcwLTAxLTAxVDAwOjAwOjAwKzAwOjAwIn1d&api-version=2020-11-01-preview3&maxPageSize=5"
}
},
"401": {
"body": {
- "code": "Unauthorized",
- "message": "Request is not authorized."
+ "error": {
+ "code": "Unauthorized",
+ "message": "Request is not authorized."
+ }
}
},
"403": {
"body": {
- "code": "Forbidden",
- "message": "User is not allowed to perform specified action."
+ "error": {
+ "code": "Forbidden",
+ "message": "User is not allowed to perform specified action."
+ }
}
},
"429": {
"body": {
- "code": "TooManyRequests",
- "message": "Rate limit exceeded."
+ "error": {
+ "code": "TooManyRequests",
+ "message": "Rate limit exceeded."
+ }
}
},
"503": {
"body": {
- "code": "ServiceUnavailable",
- "message": "The server is currently unable to handle the request."
+ "error": {
+ "code": "ServiceUnavailable",
+ "message": "The server is currently unable to handle the request."
+ }
}
}
}
diff --git a/specification/communication/data-plane/Microsoft.CommunicationServicesChat/preview/2020-11-01-preview3/examples/Threads_UpdateChatThreadTopic.json b/specification/communication/data-plane/Microsoft.CommunicationServicesChat/preview/2020-11-01-preview3/examples/Threads_UpdateChatThreadTopic.json
index 6932fd22adcf..25b988c62c03 100644
--- a/specification/communication/data-plane/Microsoft.CommunicationServicesChat/preview/2020-11-01-preview3/examples/Threads_UpdateChatThreadTopic.json
+++ b/specification/communication/data-plane/Microsoft.CommunicationServicesChat/preview/2020-11-01-preview3/examples/Threads_UpdateChatThreadTopic.json
@@ -12,26 +12,34 @@
"204": {},
"401": {
"body": {
- "code": "Unauthorized",
- "message": "Request is not authorized."
+ "error": {
+ "code": "Unauthorized",
+ "message": "Request is not authorized."
+ }
}
},
"403": {
"body": {
- "code": "Forbidden",
- "message": "User is not allowed to perform specified action."
+ "error": {
+ "code": "Forbidden",
+ "message": "User is not allowed to perform specified action."
+ }
}
},
"429": {
"body": {
- "code": "TooManyRequests",
- "message": "Rate limit exceeded."
+ "error": {
+ "code": "TooManyRequests",
+ "message": "Rate limit exceeded."
+ }
}
},
"503": {
"body": {
- "code": "ServiceUnavailable",
- "message": "The server is currently unable to handle the request."
+ "error": {
+ "code": "ServiceUnavailable",
+ "message": "The server is currently unable to handle the request."
+ }
}
}
}