# setPlanningStream

Source: https://swapcard.dev/organizer/content-api/graphql-event-api-schema/mutations/set-planning-stream


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>
  );
};

:::caution DEPRECATED
Use mutation UpsertEventPlannings to add live streaming or videos on planning.
:::

Create a new planning stream or update an existing planning stream.

```graphql
setPlanningStream(
  input: SetPlanningStreamInput!
): SetPlanningStreamPayload! @deprecated
```

### Arguments

#### [<code style={{ fontWeight: 'normal' }}>setPlanningStream.<b>input</b></code>](#)<Bullet />[`SetPlanningStreamInput!`](/organizer/content-api/graphql-event-api-schema/inputs/set-planning-stream-input) <Badge class="badge badge--secondary" text="non-null"/> <Badge class="badge badge--secondary" text="input"/> 
> 
> 
> 
> 

### Type

#### [`SetPlanningStreamPayload`](/organizer/content-api/graphql-event-api-schema/objects/set-planning-stream-payload) <Badge class="badge badge--secondary" text="object"/> 
> 
> 
> 
>
