Conversation API
All URIs are relative to http://localhost:1000
Method | HTTP request | Description |
---|---|---|
conversationAssociateAnchor | POST /conversation/{conversation}/anchors/associate/{anchor} | /conversation/{conversation}/anchors/associate/{anchor} [POST] |
conversationAssociateAsset | POST /conversation/{conversation}/assets/associate/{asset} | /conversation/{conversation}/assets/associate/{asset} [POST] |
conversationAssociateGroundingTemporalRangeWorkstream | POST /conversation/{conversation}/grounding/temporal_range/workstreams/associate/{range} | /conversation/{conversation}/grounding/temporal/ranges/associate/{range} [POST] |
conversationAssociateWebsite | POST /conversation/{conversation}/websites/associate/{website} | /conversation/{conversation}/websites/associate/{website} [POST] |
conversationAssociateWorkstreamSummary | POST /conversation/{conversation}/workstream_summaries/associate/{workstream_summary} | /conversation/{conversation}/workstream_summaries/associate/{workstream_summary} [POST] |
conversationDisassociateAnchor | POST /conversation/{conversation}/anchors/delete/{anchor} | /conversation/{conversation}/anchors/delete/{anchor} [POST] |
conversationDisassociateAsset | POST /conversation/{conversation}/assets/delete/{asset} | /conversation/{conversation}/assets/delete/{asset} [POST] |
conversationDisassociateGroundingTemporalRangeWorkstream | POST /conversation/{conversation}/grounding/temporal_range/workstreams/disassociate/{range} | /conversation/{conversation}/grounding/temporal_range/workstreams/disassociate/{range} [POST] |
conversationDisassociateWebsite | POST /conversation/{conversation}/websites/disassociate/{website} | /website/{website}/websites/disassociate/{website} [POST] |
conversationDisassociateWorkstreamSummary | POST /conversation/{conversation}/workstream_summaries/disassociate/{workstream_summary} | /conversation/{conversation}/workstream_summaries/disassociate/{workstream_summary} [POST] |
conversationGetSpecificConversation | GET /conversation/{conversation} | /conversation/{conversation} [GET] |
conversationGroundingMessagesAssociateMessage | POST /conversation/{conversation}/grounding/messages/associate/{message} | /conversation/{conversation}/grounding/messages/associate/{message} [POST] |
conversationGroundingMessagesDisassociateMessage | POST /conversation/{conversation}/grounding/messages/disassociate/{message} | /conversation/{conversation}/grounding/messages/disassociate/{message} [POST] |
conversationScoresIncrement | POST /conversation/{conversation}/scores/increment | /conversation/{conversation}/scores/increment [POST] |
conversationSpecificConversationMessages | GET /conversation/{conversation}/messages | /conversation/{conversation}/messages [GET] |
conversationSpecificConversationRename | POST /conversation/{conversation}/rename | /conversation/{conversation}/rename [POST] |
conversationSummarize | POST /conversation/{conversation}/summarize | /conversation/{conversation}/summarize [POST] |
conversationUpdate | POST /conversation/update | /conversation/update [POST] |
conversationAssociateAnchor
conversationAssociateAnchor(conversation, anchor)
/conversation/{conversation}/anchors/associate/{anchor} [POST]
Updates both the anchor and the conversation, associating them together.
Example
// Import classes:
//import app.pieces.pieces-os-client.infrastructure.*
//import app.pieces.pieces-os-client.models.*
val apiInstance = Conversation API()
val conversation : kotlin.String = conversation_example // kotlin.String | This is the uuid of a conversation.
val anchor : kotlin.String = anchor_example // kotlin.String | This is the specific uuid of an anchor.
try {
apiInstance.conversationAssociateAnchor(conversation, anchor)
} catch (e: ClientException) {
println("4xx response calling Conversation API#conversationAssociateAnchor")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling Conversation API#conversationAssociateAnchor")
e.printStackTrace()
}
Parameters
Name | Type | Description | Notes |
---|---|---|---|
conversation | kotlin.String | This is the uuid of a conversation. | |
anchor | kotlin.String | This is the specific uuid of an anchor. |
Return type
null (empty response body)
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: Not defined
conversationAssociateAsset
conversationAssociateAsset(conversation, asset)
/conversation/{conversation}/assets/associate/{asset} [POST]
Updates both the asset and the conversation, associating the two together.
Example
// Import classes:
//import app.pieces.pieces-os-client.infrastructure.*
//import app.pieces.pieces-os-client.models.*
val apiInstance = Conversation API()
val conversation : kotlin.String = conversation_example // kotlin.String | This is the uuid of a conversation.
val asset : java.util.UUID = 2254f2c8-5797-40e8-ac56-41166dc0e159 // java.util.UUID | The id (uuid) of the asset that you are trying to access.
try {
apiInstance.conversationAssociateAsset(conversation, asset)
} catch (e: ClientException) {
println("4xx response calling Conversation API#conversationAssociateAsset")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling Conversation API#conversationAssociateAsset")
e.printStackTrace()
}
Parameters
Name | Type | Description | Notes |
---|---|---|---|
conversation | kotlin.String | This is the uuid of a conversation. | |
asset | java.util.UUID | The id (uuid) of the asset that you are trying to access. |
Return type
null (empty response body)
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: Not defined
conversationAssociateGroundingTemporalRangeWorkstream
conversationAssociateGroundingTemporalRangeWorkstream(conversation, range)
/conversation/{conversation}/grounding/temporal/ranges/associate/{range} [POST]
This will associate a workstream(range) with a conversation. This will do the same thing as the range equivalent.
Example
// Import classes:
//import app.pieces.pieces-os-client.infrastructure.*
//import app.pieces.pieces-os-client.models.*
val apiInstance = Conversation API()
val conversation : kotlin.String = conversation_example // kotlin.String | This is the uuid of a conversation.
val range : kotlin.String = range_example // kotlin.String | This is a identifier that is used to identify a specific range.
try {
apiInstance.conversationAssociateGroundingTemporalRangeWorkstream(conversation, range)
} catch (e: ClientException) {
println("4xx response calling Conversation API#conversationAssociateGroundingTemporalRangeWorkstream")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling Conversation API#conversationAssociateGroundingTemporalRangeWorkstream")
e.printStackTrace()
}
Parameters
Name | Type | Description | Notes |
---|---|---|---|
conversation | kotlin.String | This is the uuid of a conversation. | |
range | kotlin.String | This is a identifier that is used to identify a specific range. |
Return type
null (empty response body)
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: Not defined
conversationAssociateWebsite
conversationAssociateWebsite(conversation, website)
/conversation/{conversation}/websites/associate/{website} [POST]
Updates both the website and the conversation, and associate them together.
Example
// Import classes:
//import app.pieces.pieces-os-client.infrastructure.*
//import app.pieces.pieces-os-client.models.*
val apiInstance = Conversation API()
val conversation : kotlin.String = conversation_example // kotlin.String | This is the uuid of a conversation.
val website : kotlin.String = website_example // kotlin.String | website id
try {
apiInstance.conversationAssociateWebsite(conversation, website)
} catch (e: ClientException) {
println("4xx response calling Conversation API#conversationAssociateWebsite")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling Conversation API#conversationAssociateWebsite")
e.printStackTrace()
}
Parameters
Name | Type | Description | Notes |
---|---|---|---|
conversation | kotlin.String | This is the uuid of a conversation. | |
website | kotlin.String | website id |
Return type
null (empty response body)
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: Not defined
conversationAssociateWorkstreamSummary
conversationAssociateWorkstreamSummary(conversation, workstreamSummary)
/conversation/{conversation}/workstream_summaries/associate/{workstream_summary} [POST]
This will associate a conversation with a workstream summary. This will do the same thing as the workstreamSummary equivalent.
Example
// Import classes:
//import app.pieces.pieces-os-client.infrastructure.*
//import app.pieces.pieces-os-client.models.*
val apiInstance = Conversation API()
val conversation : kotlin.String = conversation_example // kotlin.String | This is the uuid of a conversation.
val workstreamSummary : kotlin.String = workstreamSummary_example // kotlin.String | This is a identifier that is used to identify a specific workstream_summary.
try {
apiInstance.conversationAssociateWorkstreamSummary(conversation, workstreamSummary)
} catch (e: ClientException) {
println("4xx response calling Conversation API#conversationAssociateWorkstreamSummary")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling Conversation API#conversationAssociateWorkstreamSummary")
e.printStackTrace()
}
Parameters
Name | Type | Description | Notes |
---|---|---|---|
conversation | kotlin.String | This is the uuid of a conversation. | |
workstreamSummary | kotlin.String | This is a identifier that is used to identify a specific workstream_summary. |
Return type
null (empty response body)
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: Not defined
conversationDisassociateAnchor
conversationDisassociateAnchor(conversation, anchor)
/conversation/{conversation}/anchors/delete/{anchor} [POST]
Updates both the anchor and the conversation, deleting (disassociating) them simultaneously.
Example
// Import classes:
//import app.pieces.pieces-os-client.infrastructure.*
//import app.pieces.pieces-os-client.models.*
val apiInstance = Conversation API()
val conversation : kotlin.String = conversation_example // kotlin.String | This is the uuid of a conversation.
val anchor : kotlin.String = anchor_example // kotlin.String | This is the specific uuid of an anchor.
try {
apiInstance.conversationDisassociateAnchor(conversation, anchor)
} catch (e: ClientException) {
println("4xx response calling Conversation API#conversationDisassociateAnchor")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling Conversation API#conversationDisassociateAnchor")
e.printStackTrace()
}
Parameters
Name | Type | Description | Notes |
---|---|---|---|
conversation | kotlin.String | This is the uuid of a conversation. | |
anchor | kotlin.String | This is the specific uuid of an anchor. |
Return type
null (empty response body)
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: Not defined
conversationDisassociateAsset
conversationDisassociateAsset(conversation, asset)
/conversation/{conversation}/assets/delete/{asset} [POST]
Updates both the asset and the conversation, effectively disassociating them.
Example
// Import classes:
//import app.pieces.pieces-os-client.infrastructure.*
//import app.pieces.pieces-os-client.models.*
val apiInstance = Conversation API()
val conversation : kotlin.String = conversation_example // kotlin.String | This is the uuid of a conversation.
val asset : java.util.UUID = 2254f2c8-5797-40e8-ac56-41166dc0e159 // java.util.UUID | The id (uuid) of the asset that you are trying to access.
try {
apiInstance.conversationDisassociateAsset(conversation, asset)
} catch (e: ClientException) {
println("4xx response calling Conversation API#conversationDisassociateAsset")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling Conversation API#conversationDisassociateAsset")
e.printStackTrace()
}
Parameters
Name | Type | Description | Notes |
---|---|---|---|
conversation | kotlin.String | This is the uuid of a conversation. | |
asset | java.util.UUID | The id (uuid) of the asset that you are trying to access. |
Return type
null (empty response body)
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: Not defined
conversationDisassociateGroundingTemporalRangeWorkstream
conversationDisassociateGroundingTemporalRangeWorkstream(conversation, range)
/conversation/{conversation}/grounding/temporal_range/workstreams/disassociate/{range} [POST]
This will enable us to disassociate a workstream(range) from a conversation. This will do the same thing as the range equivalent.
Example
// Import classes:
//import app.pieces.pieces-os-client.infrastructure.*
//import app.pieces.pieces-os-client.models.*
val apiInstance = Conversation API()
val conversation : kotlin.String = conversation_example // kotlin.String | This is the uuid of a conversation.
val range : kotlin.String = range_example // kotlin.String | This is a identifier that is used to identify a specific range.
try {
apiInstance.conversationDisassociateGroundingTemporalRangeWorkstream(conversation, range)
} catch (e: ClientException) {
println("4xx response calling Conversation API#conversationDisassociateGroundingTemporalRangeWorkstream")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling Conversation API#conversationDisassociateGroundingTemporalRangeWorkstream")
e.printStackTrace()
}
Parameters
Name | Type | Description | Notes |
---|---|---|---|
conversation | kotlin.String | This is the uuid of a conversation. | |
range | kotlin.String | This is a identifier that is used to identify a specific range. |
Return type
null (empty response body)
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: Not defined
conversationDisassociateWebsite
conversationDisassociateWebsite(conversation, website)
/website/{website}/websites/disassociate/{website} [POST]
Allows us to disassociate a conversation from a specific website
Example
// Import classes:
//import app.pieces.pieces-os-client.infrastructure.*
//import app.pieces.pieces-os-client.models.*
val apiInstance = Conversation API()
val conversation : kotlin.String = conversation_example // kotlin.String | This is the uuid of a conversation.
val website : kotlin.String = website_example // kotlin.String | website id
try {
apiInstance.conversationDisassociateWebsite(conversation, website)
} catch (e: ClientException) {
println("4xx response calling Conversation API#conversationDisassociateWebsite")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling Conversation API#conversationDisassociateWebsite")
e.printStackTrace()
}
Parameters
Name | Type | Description | Notes |
---|---|---|---|
conversation | kotlin.String | This is the uuid of a conversation. | |
website | kotlin.String | website id |
Return type
null (empty response body)
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: Not defined
conversationDisassociateWorkstreamSummary
conversationDisassociateWorkstreamSummary(conversation, workstreamSummary)
/conversation/{conversation}/workstream_summaries/disassociate/{workstream_summary} [POST]
This will enable us to disassociate an conversation from a workstream summary. This will do the same thing as the workstreamSummary equivalent.
Example
// Import classes:
//import app.pieces.pieces-os-client.infrastructure.*
//import app.pieces.pieces-os-client.models.*
val apiInstance = Conversation API()
val conversation : kotlin.String = conversation_example // kotlin.String | This is the uuid of a conversation.
val workstreamSummary : kotlin.String = workstreamSummary_example // kotlin.String | This is a identifier that is used to identify a specific workstream_summary.
try {
apiInstance.conversationDisassociateWorkstreamSummary(conversation, workstreamSummary)
} catch (e: ClientException) {
println("4xx response calling Conversation API#conversationDisassociateWorkstreamSummary")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling Conversation API#conversationDisassociateWorkstreamSummary")
e.printStackTrace()
}
Parameters
Name | Type | Description | Notes |
---|---|---|---|
conversation | kotlin.String | This is the uuid of a conversation. | |
workstreamSummary | kotlin.String | This is a identifier that is used to identify a specific workstream_summary. |
Return type
null (empty response body)
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: Not defined
conversationGetSpecificConversation
Conversation conversationGetSpecificConversation(conversation, transferables)
/conversation/{conversation} [GET]
Retrieves a specific conversation.
Example
// Import classes:
//import app.pieces.pieces-os-client.infrastructure.*
//import app.pieces.pieces-os-client.models.*
val apiInstance = Conversation API()
val conversation : kotlin.String = conversation_example // kotlin.String | This is the uuid of a conversation.
val transferables : kotlin.Boolean = true // kotlin.Boolean | This is a boolean that will decided if we are want to return the transferable data (default) or not(performance enhancement)
try {
val result : Conversation = apiInstance.conversationGetSpecificConversation(conversation, transferables)
println(result)
} catch (e: ClientException) {
println("4xx response calling Conversation API#conversationGetSpecificConversation")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling Conversation API#conversationGetSpecificConversation")
e.printStackTrace()
}
Parameters
Name | Type | Description | Notes |
---|---|---|---|
conversation | kotlin.String | This is the uuid of a conversation. | |
transferables | kotlin.Boolean | This is a boolean that will decided if we are want to return the transferable data (default) or not(performance enhancement) | [optional] |
Return type
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
conversationGroundingMessagesAssociateMessage
conversationGroundingMessagesAssociateMessage(conversation, message)
/conversation/{conversation}/grounding/messages/associate/{message} [POST]
Stores the grounding context for a conversation. It allows to associate a message with the conversation's grounding object, facilitating contextual understanding and management of the conversation.
Example
// Import classes:
//import app.pieces.pieces-os-client.infrastructure.*
//import app.pieces.pieces-os-client.models.*
val apiInstance = Conversation API()
val conversation : kotlin.String = conversation_example // kotlin.String | This is the uuid of a conversation.
val message : kotlin.String = message_example // kotlin.String | This is the uuid of a message.
try {
apiInstance.conversationGroundingMessagesAssociateMessage(conversation, message)
} catch (e: ClientException) {
println("4xx response calling Conversation API#conversationGroundingMessagesAssociateMessage")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling Conversation API#conversationGroundingMessagesAssociateMessage")
e.printStackTrace()
}
Parameters
Name | Type | Description | Notes |
---|---|---|---|
conversation | kotlin.String | This is the uuid of a conversation. | |
message | kotlin.String | This is the uuid of a message. |
Return type
null (empty response body)
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: Not defined
conversationGroundingMessagesDisassociateMessage
conversationGroundingMessagesDisassociateMessage(conversation, message)
/conversation/{conversation}/grounding/messages/disassociate/{message} [POST]
Removes a specific grounding context for a conversation, and allows us to disassociate a message from the conversation's grounding object.
Example
// Import classes:
//import app.pieces.pieces-os-client.infrastructure.*
//import app.pieces.pieces-os-client.models.*
val apiInstance = Conversation API()
val conversation : kotlin.String = conversation_example // kotlin.String | This is the uuid of a conversation.
val message : kotlin.String = message_example // kotlin.String | This is the uuid of a message.
try {
apiInstance.conversationGroundingMessagesDisassociateMessage(conversation, message)
} catch (e: ClientException) {
println("4xx response calling Conversation API#conversationGroundingMessagesDisassociateMessage")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling Conversation API#conversationGroundingMessagesDisassociateMessage")
e.printStackTrace()
}
Parameters
Name | Type | Description | Notes |
---|---|---|---|
conversation | kotlin.String | This is the uuid of a conversation. | |
message | kotlin.String | This is the uuid of a message. |
Return type
null (empty response body)
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: Not defined
conversationScoresIncrement
conversationScoresIncrement(conversation, seededScoreIncrement)
/conversation/{conversation}/scores/increment [POST]
Increment scores associated with a conversation. It accepts a SeededScoreIncrement object as input to adjust the scores accordingly based on the provided data.
Example
// Import classes:
//import app.pieces.pieces-os-client.infrastructure.*
//import app.pieces.pieces-os-client.models.*
val apiInstance = Conversation API()
val conversation : kotlin.String = conversation_example // kotlin.String | This is the uuid of a conversation.
val seededScoreIncrement : SeededScoreIncrement = // SeededScoreIncrement |
try {
apiInstance.conversationScoresIncrement(conversation, seededScoreIncrement)
} catch (e: ClientException) {
println("4xx response calling Conversation API#conversationScoresIncrement")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling Conversation API#conversationScoresIncrement")
e.printStackTrace()
}
Parameters
Name | Type | Description | Notes |
---|---|---|---|
conversation | kotlin.String | This is the uuid of a conversation. | |
seededScoreIncrement | SeededScoreIncrement | [optional] |
Return type
null (empty response body)
Authorization
No authorization required
HTTP request headers
- Content-Type: application/json
- Accept: Not defined
conversationSpecificConversationMessages
ConversationMessages conversationSpecificConversationMessages(conversation, transferables)
/conversation/{conversation}/messages [GET]
Retrieves messages specific to a particular conversation.
Example
// Import classes:
//import app.pieces.pieces-os-client.infrastructure.*
//import app.pieces.pieces-os-client.models.*
val apiInstance = Conversation API()
val conversation : kotlin.String = conversation_example // kotlin.String | This is the uuid of a conversation.
val transferables : kotlin.Boolean = true // kotlin.Boolean | This is a boolean that will decided if we are want to return the transferable data (default) or not(performance enhancement)
try {
val result : ConversationMessages = apiInstance.conversationSpecificConversationMessages(conversation, transferables)
println(result)
} catch (e: ClientException) {
println("4xx response calling Conversation API#conversationSpecificConversationMessages")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling Conversation API#conversationSpecificConversationMessages")
e.printStackTrace()
}
Parameters
Name | Type | Description | Notes |
---|---|---|---|
conversation | kotlin.String | This is the uuid of a conversation. | |
transferables | kotlin.Boolean | This is a boolean that will decided if we are want to return the transferable data (default) or not(performance enhancement) | [optional] |
Return type
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
conversationSpecificConversationRename
Conversation conversationSpecificConversationRename(conversation, transferables)
/conversation/{conversation}/rename [POST]
Renames a specific conversation using machine learning (ML) techniques.
Example
// Import classes:
//import app.pieces.pieces-os-client.infrastructure.*
//import app.pieces.pieces-os-client.models.*
val apiInstance = Conversation API()
val conversation : kotlin.String = conversation_example // kotlin.String | This is the uuid of a conversation.
val transferables : kotlin.Boolean = true // kotlin.Boolean | This is a boolean that will decided if we are want to return the transferable data (default) or not(performance enhancement)
try {
val result : Conversation = apiInstance.conversationSpecificConversationRename(conversation, transferables)
println(result)
} catch (e: ClientException) {
println("4xx response calling Conversation API#conversationSpecificConversationRename")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling Conversation API#conversationSpecificConversationRename")
e.printStackTrace()
}
Parameters
Name | Type | Description | Notes |
---|---|---|---|
conversation | kotlin.String | This is the uuid of a conversation. | |
transferables | kotlin.Boolean | This is a boolean that will decided if we are want to return the transferable data (default) or not(performance enhancement) | [optional] |
Return type
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
conversationSummarize
ConversationSummarizeOutput conversationSummarize(conversation, conversationSummarizeInput)
/conversation/{conversation}/summarize [POST]
Generates a summary of a given conversation and saves it as an annotation associated with the conversation. It returns a reference to the annotation, which serves as the summary.
Example
// Import classes:
//import app.pieces.pieces-os-client.infrastructure.*
//import app.pieces.pieces-os-client.models.*
val apiInstance = Conversation API()
val conversation : kotlin.String = conversation_example // kotlin.String | This is the uuid of a conversation.
val conversationSummarizeInput : ConversationSummarizeInput = // ConversationSummarizeInput |
try {
val result : ConversationSummarizeOutput = apiInstance.conversationSummarize(conversation, conversationSummarizeInput)
println(result)
} catch (e: ClientException) {
println("4xx response calling Conversation API#conversationSummarize")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling Conversation API#conversationSummarize")
e.printStackTrace()
}
Parameters
Name | Type | Description | Notes |
---|---|---|---|
conversation | kotlin.String | This is the uuid of a conversation. | |
conversationSummarizeInput | ConversationSummarizeInput | [optional] |
Return type
Authorization
No authorization required
HTTP request headers
- Content-Type: application/json
- Accept: application/json
conversationUpdate
Conversation conversationUpdate(transferables, conversation)
/conversation/update [POST]
Updates a specific conversation.
Example
// Import classes:
//import app.pieces.pieces-os-client.infrastructure.*
//import app.pieces.pieces-os-client.models.*
val apiInstance = Conversation API()
val transferables : kotlin.Boolean = true // kotlin.Boolean | This is a boolean that will decided if we are want to return the transferable data (default) or not(performance enhancement)
val conversation : Conversation = // Conversation |
try {
val result : Conversation = apiInstance.conversationUpdate(transferables, conversation)
println(result)
} catch (e: ClientException) {
println("4xx response calling Conversation API#conversationUpdate")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling Conversation API#conversationUpdate")
e.printStackTrace()
}
Parameters
Name | Type | Description | Notes |
---|---|---|---|
transferables | kotlin.Boolean | This is a boolean that will decided if we are want to return the transferable data (default) or not(performance enhancement) | [optional] |
conversation | Conversation | [optional] |
Return type
Authorization
No authorization required
HTTP request headers
- Content-Type: application/json
- Accept: application/json