IRPCConversationOperations.AddOrUpdateConversation
Vault API / standard write session
Creates a conversation, or renames an existing one of the caller.
| Service | Conversations MFiles.IRPCConversationOperations |
|---|---|
| gRPC method | /MFiles.IRPCConversationOperations/AddOrUpdateConversation |
| HTTP (mf-http-grpc) | POST /grpc/v1/add-or-update-conversation |
| Request | AddOrUpdateConversationRequest |
| Response | AddOrUpdateConversationResponse |
| Book and level | Vault API, standard |
| Kind | write |
| Session | Required: the session ID from LogIn in the mfiles-session-id-bin metadata. |
| Idempotent | no |
| Returns metadata structure version | no |
| Streaming | none (unary) |
Remarks
- With
id0, or an ID that does not exist, the server creates a new conversation with a new ID andsort_key, owned by the caller. Read the new ID from the response. - With the ID of an existing conversation of the caller, only
titleis changed andmodifiedis updated;typecannot be changed. The conversation of another user fails with "Access is denied.". user_id,sort_key,createdandmodifiedin the request are ignored.
Request: AddOrUpdateConversationRequest
Nested message fields are expanded to depth 3; follow a type link for deeper levels and for the type's own page.
| Field | Type | Description |
|---|---|---|
conversation | Conversation | The conversation. Set title and, for a new one, type; set id to rename an existing one. |
conversation.id | uint32 | The ID of the conversation, assigned by the server. |
conversation.user_id | uint32 | The ID of the user account that owns the conversation. Set by the server. |
conversation.type | ConversationType | The kind of conversation. Set when the conversation is created.Values: CONVERSATION_TYPE_UNDEFINED (0), CONVERSATION_TYPE_AINO (1). |
conversation.title | string | The title of the conversation, as plain text. |
conversation.sort_key | uint32 | Orders conversations; newer conversations have larger values. Used for paging. |
conversation.created | google.protobuf.Timestamp | When the conversation was created (UTC). |
conversation.modified | google.protobuf.Timestamp | When the conversation was created or last renamed (UTC). |
Response: AddOrUpdateConversationResponse
Nested message fields are expanded to depth 3; follow a type link for deeper levels and for the type's own page.
| Field | Type | Description |
|---|---|---|
updated_conversation | Conversation | The conversation as stored. |
updated_conversation.id | uint32 | The ID of the conversation, assigned by the server. |
updated_conversation.user_id | uint32 | The ID of the user account that owns the conversation. Set by the server. |
updated_conversation.type | ConversationType | The kind of conversation. Set when the conversation is created.Values: CONVERSATION_TYPE_UNDEFINED (0), CONVERSATION_TYPE_AINO (1). |
updated_conversation.title | string | The title of the conversation, as plain text. |
updated_conversation.sort_key | uint32 | Orders conversations; newer conversations have larger values. Used for paging. |
updated_conversation.created | google.protobuf.Timestamp | When the conversation was created (UTC). |
updated_conversation.modified | google.protobuf.Timestamp | When the conversation was created or last renamed (UTC). |