---
title: "collectionCreate"
description: >
  Create a new collection in the store.  :::tip{title="TIP"} The API does not support direct management of SEO information. 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 creating a collection via this API, the initial value for `seoTitle` is assigned through `title`, and the initial value for `seoDescription` is assigned through `body_html`. :::
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-create'
  md: 'https://developer.shopline.com/docs/admin-graph-ql-api/products-and-collections/mutations/collection-create.md'
---
# collectionCreate

Create a new collection in the store.

:::tip{title="TIP"}
The API does not support direct management of SEO information. 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 creating a collection via this API, the initial value for `seoTitle` is assigned through `title`, and the initial value for `seoDescription` is assigned through `body_html`.
:::

- **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 create.

## Returns

* `collection`

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

  The created collection.

* `userErrors`

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

  The list of errors that occurred from executing the mutation.	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).

