---
title: "collectionUpdate"
description: >
  Update a collection in the store.   :::tip{title="TIP"} Collection SEO details are managed via metafields. For operation instructions, refer to [Editing SEO information for the corresponding resource page through metafield's Open API](https://developer.shopline.com/docs/apps/shopline-metafields/overview#metafields-seo-data-optimization).  When updating a collection via this API, the SEO information will not be updated. :::
doc_type: graphql
doc_category: adminGraphQL
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/docs/admin-graph-ql-api/products-and-collections/mutations/collection-update'
  md: 'https://developer.shopline.com/docs/admin-graph-ql-api/products-and-collections/mutations/collection-update.md'
---
# collectionUpdate

Update a collection in the store. 

:::tip{title="TIP"}
Collection SEO details are managed via metafields. For operation instructions, refer to [Editing SEO information for the corresponding resource page through metafield's Open API](https://developer.shopline.com/docs/apps/shopline-metafields/overview#metafields-seo-data-optimization).

When updating a collection via this API, the SEO information will not be updated.
:::

- **API Version:** v20270301
- **API Type:** Admin
- **API Protocol:** GraphQL
- **Operation Type:** Mutation

## Arguments

* `input`

  [CollectionInput!](https://developer.shopline.com/docs/admin-graph-ql-api/products-and-collections/inputs/collection-input.md)

  The input fields for specifying the collection to update.

## Returns

* `collection`

  [Collection](https://developer.shopline.com/docs/admin-graph-ql-api/products-and-collections/objects/collection.md)

  The updated collection.	The collection that has been updated.

* `userErrors`

  [[UserError!]!](https://developer.shopline.com/docs/admin-graph-ql-api/common-objects/objects/user-error.md)

  A list of the errors encountered during the mutation. 

## Error Handling

For detailed information about common codes, see [Status and error codes](https://developer.shopline.com/docs/apps/api-instructions-for-use/graph-ql-admin-api/overview.md#status-and-error-codes).

