# UpdateProductInput

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

### Fields

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

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

#### [<code style={{ fontWeight: 'normal' }}>UpdateProductInput.<b>productId</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 product ID to update.
> 

#### [<code style={{ fontWeight: 'normal' }}>UpdateProductInput.<b>categoryId</b></code>](#)<Bullet />[`ID`](/organizer/content-api/graphql-event-api-schema/scalars/id) <Badge class="badge badge--secondary" text="scalar"/> 
> 
> 
> The new category where the product should belong.
> 

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

#### [<code style={{ fontWeight: 'normal' }}>UpdateProductInput.<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' }}>UpdateProductInput.<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' }}>UpdateProductInput.<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' }}>UpdateProductInput.<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' }}>UpdateProductInput.<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. Removes the links for exhibitors not specified in the list.
> 

#### [<code style={{ fontWeight: 'normal' }}>UpdateProductInput.<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' }}>UpdateProductInput.<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"/> 
> 
> 
> Update product related with event.
> 

### Member Of

[`updateProduct`](/organizer/content-api/graphql-event-api-schema/mutations/update-product)  <Badge class="badge badge--secondary" text="mutation"/><Bullet />[`UpdateProductsInput`](/organizer/content-api/graphql-event-api-schema/inputs/update-products-input)  <Badge class="badge badge--secondary" text="input"/>
