# CreateProductInput

Source: https://swapcard.dev/organizer/content-api/graphql-event-api-schema/inputs/create-product-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 CreateProductInput {
  clientId: ID
  eventId: ID!
  categoryId: ID!
  name: String!
  description: String
  imageUrl: String
  assetsUrls: [String!]
  translations: [ProductTranslationInput!]
  exhibitorIds: [ID!]
  customFields: [CustomFieldUnionInput!]
  withEvent: ProductWithEventInput
}
```

### Fields

#### [<code style={{ fontWeight: 'normal' }}>CreateProductInput.<b>clientId</b></code>](#)<Bullet />[`ID`](/organizer/content-api/graphql-event-api-schema/scalars/id) <Badge class="badge badge--secondary" text="scalar"/> 
> 
> 
> Represents an external ID used to create a product only one time. If "clientId" already matches a product, the mutation will be ignored.
> 

#### [<code style={{ fontWeight: 'normal' }}>CreateProductInput.<b>eventId</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"/> 
> 
> 
> The event where the product should be created.
> 

#### [<code style={{ fontWeight: 'normal' }}>CreateProductInput.<b>categoryId</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"/> 
> 
> 
> The category where the product should be created.
> 

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

#### [<code style={{ fontWeight: 'normal' }}>CreateProductInput.<b>description</b></code>](#)<Bullet />[`String`](/organizer/content-api/graphql-event-api-schema/scalars/string) <Badge class="badge badge--secondary" text="scalar"/> 
> 
> 
> 
> 

#### [<code style={{ fontWeight: 'normal' }}>CreateProductInput.<b>imageUrl</b></code>](#)<Bullet />[`String`](/organizer/content-api/graphql-event-api-schema/scalars/string) <Badge class="badge badge--secondary" text="scalar"/> 
> 
> 
> The URL to the main image of the product.
> 

#### [<code style={{ fontWeight: 'normal' }}>CreateProductInput.<b>assetsUrls</b></code>](#)<Bullet />[`[String!]`](/organizer/content-api/graphql-event-api-schema/scalars/string) <Badge class="badge badge--secondary" text="list"/> <Badge class="badge badge--secondary" text="scalar"/> 
> 
> 
> A list of assets URLs attached to the product.
> 

#### [<code style={{ fontWeight: 'normal' }}>CreateProductInput.<b>translations</b></code>](#)<Bullet />[`[ProductTranslationInput!]`](/organizer/content-api/graphql-event-api-schema/inputs/product-translation-input) <Badge class="badge badge--secondary" text="list"/> <Badge class="badge badge--secondary" text="input"/> 
> 
> 
> Translated content for the product.
> 

#### [<code style={{ fontWeight: 'normal' }}>CreateProductInput.<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"/> 
> 
> 
> Link the product to one or more exhibitors.
> 

#### [<code style={{ fontWeight: 'normal' }}>CreateProductInput.<b>customFields</b></code>](#)<Bullet />[`[CustomFieldUnionInput!]`](/organizer/content-api/graphql-event-api-schema/inputs/custom-field-union-input) <Badge class="badge badge--secondary" text="list"/> <Badge class="badge badge--secondary" text="input"/> 
> 
> 
> Set custom fields for the product.
> 

#### [<code style={{ fontWeight: 'normal' }}>CreateProductInput.<b>withEvent</b></code>](#)<Bullet />[`ProductWithEventInput`](/organizer/content-api/graphql-event-api-schema/inputs/product-with-event-input) <Badge class="badge badge--secondary" text="input"/> 
> 
> 
> Create product related with event.
> 

### Member Of

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