# detachChatroomsFromView

Source: https://swapcard.dev/organizer/content-api/graphql-event-api-schema/mutations/detach-chatrooms-from-view


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
detachChatroomsFromView(
  eventId: String
  communityId: String
  chatroomIds: [Chat_UUID!]!
  viewId: String!
): [Chat_Channel!]!
```

### Arguments

#### [<code style={{ fontWeight: 'normal' }}>detachChatroomsFromView.<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' }}>detachChatroomsFromView.<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
> 

#### [<code style={{ fontWeight: 'normal' }}>detachChatroomsFromView.<b>chatroomIds</b></code>](#)<Bullet />[`[Chat_UUID!]!`](/organizer/content-api/graphql-event-api-schema/scalars/chat-uuid) <Badge class="badge badge--secondary" text="non-null"/> <Badge class="badge badge--secondary" text="scalar"/> 
> 
> 
> 
> 

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

### Type

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