# PushNotificationTargetInput

Source: https://swapcard.dev/organizer/content-api/graphql-event-api-schema/inputs/push-notification-target-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>
  );
};

This type allows to target different audience. In order to keep compliance, the `target` type define what audience will be chosen

```graphql
input PushNotificationTargetInput {
  OR: [PushNotificationTargetInput!]
  AND: [PushNotificationTargetInput!]
  NOT: [PushNotificationTargetInput!]
  target: PushNotificationTargetEnum!
  eventIds: [ID!]
  exhibitorIds: [ID!]
  planningIds: [ID!]
  eventGroupIds: [ID!]
  communityProfileIds: [ID!]
  engagementScoreAbove: Float
  engagementScoreBelow: Float
}
```

### Fields

#### [<code style={{ fontWeight: 'normal' }}>PushNotificationTargetInput.<b>OR</b></code>](#)<Bullet />[`[PushNotificationTargetInput!]`](/organizer/content-api/graphql-event-api-schema/inputs/push-notification-target-input) <Badge class="badge badge--secondary" text="list"/> <Badge class="badge badge--secondary" text="input"/> 
> 
> 
> Require a "PARENT" target type - other fields except "AND" and "NOT" will be ignored.
> 

#### [<code style={{ fontWeight: 'normal' }}>PushNotificationTargetInput.<b>AND</b></code>](#)<Bullet />[`[PushNotificationTargetInput!]`](/organizer/content-api/graphql-event-api-schema/inputs/push-notification-target-input) <Badge class="badge badge--secondary" text="list"/> <Badge class="badge badge--secondary" text="input"/> 
> 
> 
> Require a "PARENT" target type - other fields except "OR" and "NOT" will be ignored.
> 

#### [<code style={{ fontWeight: 'normal' }}>PushNotificationTargetInput.<b>NOT</b></code>](#)<Bullet />[`[PushNotificationTargetInput!]`](/organizer/content-api/graphql-event-api-schema/inputs/push-notification-target-input) <Badge class="badge badge--secondary" text="list"/> <Badge class="badge badge--secondary" text="input"/> 
> 
> 
> Require a "PARENT" target type - other fields except "AND" and "OR" will be ignored.
> 

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

#### [<code style={{ fontWeight: 'normal' }}>PushNotificationTargetInput.<b>eventIds</b></code>](#)<Bullet />[`[ID!]`](/organizer/content-api/graphql-event-api-schema/scalars/id) <Badge class="badge badge--secondary" text="list"/> <Badge class="badge badge--secondary" text="scalar"/> 
> 
> 
> Target event attendees. Require a "EVENT_ATTENDEE" target type - other fields will be ignored.
> 

#### [<code style={{ fontWeight: 'normal' }}>PushNotificationTargetInput.<b>exhibitorIds</b></code>](#)<Bullet />[`[ID!]`](/organizer/content-api/graphql-event-api-schema/scalars/id) <Badge class="badge badge--secondary" text="list"/> <Badge class="badge badge--secondary" text="scalar"/> 
> 
> 
> Ids of exhibitor whose members will be targeted. Require a "EXHIBITOR_MEMBER" target type - other fields will be ignored.
> 

#### [<code style={{ fontWeight: 'normal' }}>PushNotificationTargetInput.<b>planningIds</b></code>](#)<Bullet />[`[ID!]`](/organizer/content-api/graphql-event-api-schema/scalars/id) <Badge class="badge badge--secondary" text="list"/> <Badge class="badge badge--secondary" text="scalar"/> 
> 
> 
> Ids of planning whose attendees will be targeted. Require a "PLANNING_ATTENDEE" target type - other fields will be ignored.
> 

#### [<code style={{ fontWeight: 'normal' }}>PushNotificationTargetInput.<b>eventGroupIds</b></code>](#)<Bullet />[`[ID!]`](/organizer/content-api/graphql-event-api-schema/scalars/id) <Badge class="badge badge--secondary" text="list"/> <Badge class="badge badge--secondary" text="scalar"/> 
> 
> 
> Target eventGroups. Require a "EVENT_GROUP" target type - other fields will be ignored.
> 

#### [<code style={{ fontWeight: 'normal' }}>PushNotificationTargetInput.<b>communityProfileIds</b></code>](#)<Bullet />[`[ID!]`](/organizer/content-api/graphql-event-api-schema/scalars/id) <Badge class="badge badge--secondary" text="list"/> <Badge class="badge badge--secondary" text="scalar"/> 
> 
> 
> Target communityProfiles. Require a "COMMUNITY_PROFILE" target type - other fields will be ignored.
> 

#### [<code style={{ fontWeight: 'normal' }}>PushNotificationTargetInput.<b>engagementScoreAbove</b></code>](#)<Bullet />[`Float`](/organizer/content-api/graphql-event-api-schema/scalars/float) <Badge class="badge badge--secondary" text="scalar"/> 
> 
> 
> Target people with engagement score above this value. Require a "ENGAGEMENT_SCORE" target type - other fields except "engagementScoreBelow"will be ignored.
> 

#### [<code style={{ fontWeight: 'normal' }}>PushNotificationTargetInput.<b>engagementScoreBelow</b></code>](#)<Bullet />[`Float`](/organizer/content-api/graphql-event-api-schema/scalars/float) <Badge class="badge badge--secondary" text="scalar"/> 
> 
> 
> Target people with engagement score below this value. Require a "ENGAGEMENT_SCORE" target type - other fields except "engagementScoreAbove"will be ignored.
> 

### Member Of

[`CreatePushNotificationInput`](/organizer/content-api/graphql-event-api-schema/inputs/create-push-notification-input)  <Badge class="badge badge--secondary" text="input"/><Bullet />[`PushNotificationTargetInput`](/organizer/content-api/graphql-event-api-schema/inputs/push-notification-target-input)  <Badge class="badge badge--secondary" text="input"/>
