# CreatePushNotificationInput

Source: https://swapcard.dev/organizer/content-api/graphql-event-api-schema/inputs/create-push-notification-input


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
input CreatePushNotificationInput {
  communityId: ID!
  withEvent: PushNotificationWithEventInput!
  translations: [PushNotificationTranslationInput!]!
  scheduledAt: DateTime
  targets: PushNotificationTargetInput!
  redirection: PushNotificationRedirectionInput!
}
```

### Fields

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

#### [<code style={{ fontWeight: 'normal' }}>CreatePushNotificationInput.<b>withEvent</b></code>](#)<Bullet />[`PushNotificationWithEventInput!`](/organizer/content-api/graphql-event-api-schema/inputs/push-notification-with-event-input) <Badge class="badge badge--secondary" text="non-null"/> <Badge class="badge badge--secondary" text="input"/> 
> 
> 
> In the future, "withEvent" will be nullable, in order to unlink push notification from event but still keep it at community level
> 

#### [<code style={{ fontWeight: 'normal' }}>CreatePushNotificationInput.<b>translations</b></code>](#)<Bullet />[`[PushNotificationTranslationInput!]!`](/organizer/content-api/graphql-event-api-schema/inputs/push-notification-translation-input) <Badge class="badge badge--secondary" text="non-null"/> <Badge class="badge badge--secondary" text="input"/> 
> 
> 
> 
> 

#### [<code style={{ fontWeight: 'normal' }}>CreatePushNotificationInput.<b>scheduledAt</b></code>](#)<Bullet />[`DateTime`](/organizer/content-api/graphql-event-api-schema/scalars/date-time) <Badge class="badge badge--secondary" text="scalar"/> 
> 
> 
> If "scheduledAt" is null or lower than current timestamp, it means the push notification is sent instantly - set to UTC
> 

#### [<code style={{ fontWeight: 'normal' }}>CreatePushNotificationInput.<b>targets</b></code>](#)<Bullet />[`PushNotificationTargetInput!`](/organizer/content-api/graphql-event-api-schema/inputs/push-notification-target-input) <Badge class="badge badge--secondary" text="non-null"/> <Badge class="badge badge--secondary" text="input"/> 
> 
> 
> 
> 

#### [<code style={{ fontWeight: 'normal' }}>CreatePushNotificationInput.<b>redirection</b></code>](#)<Bullet />[`PushNotificationRedirectionInput!`](/organizer/content-api/graphql-event-api-schema/inputs/push-notification-redirection-input) <Badge class="badge badge--secondary" text="non-null"/> <Badge class="badge badge--secondary" text="input"/> 
> 
> 
> 
> 

### Member Of

[`createPushNotification`](/organizer/content-api/graphql-event-api-schema/mutations/create-push-notification)  <Badge class="badge badge--secondary" text="mutation"/>
