Skip to main content

ConversationMessages API

All URIs are relative to http://localhost:1000

MethodHTTP requestDescription
messagesCreateSpecificMessagePOST /messages/create/messages/create [POST]
messagesDeleteSpecificMessagePOST /messages/{message}/delete/messages/{message}/delete [POST]
messagesSnapshotGET /messages/messages [GET]

messagesCreateSpecificMessage

ConversationMessage messagesCreateSpecificMessage(transferables, seededConversationMessage)

/messages/create [POST]

This will create a Message on a specific conversation.

Example

import 'package:core_openapi/api.dart';

final api_instance = ConversationMessagesApi();
final transferables = true; // bool | This is a boolean that will decided if we are want to return the transferable data (default) or not(performance enhancement)
final seededConversationMessage = SeededConversationMessage(); // SeededConversationMessage |

try {
final result = api_instance.messagesCreateSpecificMessage(transferables, seededConversationMessage);
print(result);
} catch (e) {
print('Exception when calling ConversationMessagesApi->messagesCreateSpecificMessage: $e\n');
}

Parameters

NameTypeDescriptionNotes
transferablesboolThis is a boolean that will decided if we are want to return the transferable data (default) or not(performance enhancement)[optional]
seededConversationMessageSeededConversationMessage[optional]

Return type

ConversationMessage

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json, text/plain

messagesDeleteSpecificMessage

messagesDeleteSpecificMessage(message)

/messages/{message}/delete [POST]

This will delete a specific message.

Example

import 'package:core_openapi/api.dart';

final api_instance = ConversationMessagesApi();
final message = message_example; // String | This is the uuid of a message.

try {
api_instance.messagesDeleteSpecificMessage(message);
} catch (e) {
print('Exception when calling ConversationMessagesApi->messagesDeleteSpecificMessage: $e\n');
}

Parameters

NameTypeDescriptionNotes
messageStringThis is the uuid of a message.

Return type

void (empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: text/plain

messagesSnapshot

ConversationMessages messagesSnapshot(transferables)

/messages [GET]

This will get all the messages.

Example

import 'package:core_openapi/api.dart';

final api_instance = ConversationMessagesApi();
final transferables = true; // bool | This is a boolean that will decided if we are want to return the transferable data (default) or not(performance enhancement)

try {
final result = api_instance.messagesSnapshot(transferables);
print(result);
} catch (e) {
print('Exception when calling ConversationMessagesApi->messagesSnapshot: $e\n');
}

Parameters

NameTypeDescriptionNotes
transferablesboolThis is a boolean that will decided if we are want to return the transferable data (default) or not(performance enhancement)[optional]

Return type

ConversationMessages

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json, text/plain