SunshineConversationsClient::ConversationCreateBody

August 27, 2025 ยท View on GitHub

Properties

NameTypeDescriptionNotes
typeConversationType
participantsArray<ParticipantSubSchema>The users participating in the conversation. For `personal` conversations, this field is required with a length of exactly 1. For `sdkGroup` conversations, must have a length less than or equal to 10. Can be omitted to have a conversation with no participants if the type is `sdkGroup`.[optional]
display_nameStringA friendly name for the conversation, may be displayed to the business or the user.[optional]
descriptionStringA short text describing the conversation.[optional]
icon_urlStringA custom conversation icon url. The image must be in either JPG, PNG, or GIF format[optional]
metadataHash<String, Object>Flat object containing custom properties. Strings, numbers and booleans are the only supported format that can be passed to metadata. The metadata is limited to 4KB in size.[optional]

Example

require 'sunshine-conversations-client'

instance = SunshineConversationsClient::ConversationCreateBody.new(
  type: null,
  participants: null,
  display_name: null,
  description: Conversation between Rogers and Carl.,
  icon_url: https://www.gravatar.com/image.jpg,
  metadata: {&quot;lang&quot;:&quot;en-ca&quot;}
)