# createChatroom

Source: https://swapcard.dev/organizer/content-api/graphql-event-api-schema/mutations/create-chatroom


const [open, setOpen] = useState(startOpen);
  return (
    <details {...(open ? { open: true } : {})} className="details" style={{ border:'none', boxShadow:'none', background:'var(--ifm-background-color)' }}>
      <summary
        onClick={(e) => {
          e.preventDefault();
          setOpen((open) => !open);
        }}
        style={{ listStyle:'none' }}
      >
      {open ? dataOpen : dataClose}
      </summary>
      {open && children}
    </details>
  );
};

No description

```graphql
createChatroom(
  channel: Chat_CreateChannelInput!
  eventId: String
  communityId: String
): Chat_Channel!
```

### Arguments

#### [<code style={{ fontWeight: 'normal' }}>createChatroom.<b>channel</b></code>](#)<Bullet />[`Chat_CreateChannelInput!`](/organizer/content-api/graphql-event-api-schema/inputs/chat-create-channel-input) <Badge class="badge badge--secondary" text="non-null"/> <Badge class="badge badge--secondary" text="input"/> 
> 
> 
> 
> 

#### [<code style={{ fontWeight: 'normal' }}>createChatroom.<b>eventId</b></code>](#)<Bullet />[`String`](/organizer/content-api/graphql-event-api-schema/scalars/string) <Badge class="badge badge--secondary" text="scalar"/> 
> 
> 
> 
> 

#### [<code style={{ fontWeight: 'normal' }}>createChatroom.<b>communityId</b></code>](#)<Bullet />[`String`](/organizer/content-api/graphql-event-api-schema/scalars/string) <Badge class="badge badge--secondary" text="scalar"/> 
> 
> 
> Mandatory - will be required in the future
> 

### Type

#### [`Chat_Channel`](/organizer/content-api/graphql-event-api-schema/objects/chat-channel) <Badge class="badge badge--secondary" text="object"/> 
> 
> 
> 
>
