# CreateProductCategoryInput

Source: https://swapcard.dev/organizer/content-api/graphql-event-api-schema/inputs/create-product-category-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 CreateProductCategoryInput {
  eventId: ID!
  name: String!
  parentId: ID
  imageUrl: String
  color: String
  limit: Int
  translations: [ProductCategoryTranslationInput!]
  fieldDefinitionIds: [ID!]
  withEvent: [ProductCategoryWithEventInput!]
}
```

### Fields

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

#### [<code style={{ fontWeight: 'normal' }}>CreateProductCategoryInput.<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' }}>CreateProductCategoryInput.<b>parentId</b></code>](#)<Bullet />[`ID`](/organizer/content-api/graphql-event-api-schema/scalars/id) <Badge class="badge badge--secondary" text="scalar"/> 
> 
> 
> 
> 

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

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

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

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

#### [<code style={{ fontWeight: 'normal' }}>CreateProductCategoryInput.<b>fieldDefinitionIds</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"/> 
> 
> 
> Add field definitions related to the category.
> 

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

### Member Of

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