updateConversationMessageMetadataWithHttpInfo method
Future<Response>
updateConversationMessageMetadataWithHttpInfo(
- String id,
- UpdateMessageMetadataRequest updateMessageMetadataRequest
Patch metadata on an existing message. Body must include the message id (path is the conversation id, not the message).
Note: This method returns the HTTP Response.
Parameters:
-
String id (required):
-
UpdateMessageMetadataRequest updateMessageMetadataRequest (required):
Implementation
Future<Response> updateConversationMessageMetadataWithHttpInfo(String id, UpdateMessageMetadataRequest updateMessageMetadataRequest,) async {
// ignore: prefer_const_declarations
final path = r'/v1/conversations/{id}/messages'
.replaceAll('{id}', id);
// ignore: prefer_final_locals
Object? postBody = updateMessageMetadataRequest;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>['application/json'];
return apiClient.invokeAPI(
path,
'PATCH',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}