Skip to content

Category — Create

Creates a new category. Equivalent to POST /api/admin/catalog/categories.

Operation

OperationTypePurpose
createAdminCategoryMutationCreate a new category

Input

Same fields as the REST endpoint — slug, name, description, position, attributes, parent_id, display_mode, status, locale, and optional SEO fields. See the REST page for the full field table and validation rules.

Notes

  • File upload not supported in v1logo_path / banner_path cannot be set via this mutation.
  • Follow up with the adminCategory query to load the refreshed detail.

Released under the MIT License.