Create conversation participant

createConversationParticipant(conversationId: ID!, input: CreateConversationParticipantInput!): ConversationParticipant!

Arguments

ArgumentTypeRequired
conversationIdID!Yes
inputCreateConversationParticipantInput!Yes

Input fields

input

CreateConversationParticipantInput

FieldTypeRequiredDescription
userIdID!YesUser to add.
roleStringNomember (default) or viewer.

Response

Returns ConversationParticipant!. Open the type for its fields and nested types.

FieldType
idID!
conversationIdID!
participantIdID
participantTypeString!
userIdID
agentIdString
displayNameString
agentKindString

All fields of ConversationParticipant.

Types marked with ! cannot be null. Lists use [Type] notation. The type index lists all published input and response types.

Example

graphql
mutation CreateConversationParticipant($conversationId: ID!, $input: CreateConversationParticipantInput!) {
  createConversationParticipant(conversationId: $conversationId, input: $input) {
    id
    agentId
    agentKind
    avatarUrl
    conversationId
  }
}
json
{
  "conversationId": "00000000-0000-4000-8000-000000000001",
  "input": {
    "userId": "00000000-0000-4000-8000-000000000001"
  }
}