# upsertPlanningRedirectUrlView

Source: https://swapcard.dev/organizer/content-api/graphql-event-api-schema/mutations/upsert-planning-redirect-url-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>
  );
};

Create or update a redirect URL on a planning.

```graphql
upsertPlanningRedirectUrlView(
  input: UpsertPlanningRedirectUrlViewInput!
): UpsertPlanningRedirectUrlViewPayload!
```

### Arguments

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

### Type

#### [`UpsertPlanningRedirectUrlViewPayload`](/organizer/content-api/graphql-event-api-schema/objects/upsert-planning-redirect-url-view-payload) <Badge class="badge badge--secondary" text="object"/> 
> 
> 
> 
>
