# createEventPlanningLink

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


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

Create swapcard event planning link

```graphql
createEventPlanningLink(
  data: CreatePlanningLinkInput!
  eventId: String!
): PlanningLink!
```

### Arguments

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

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

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