Create Category
app_install_bearerscope: categories:writeidempotent
Parameters
| Field | Type | Required | Description |
|---|
Idempotency-Keyheader | string | required | Unique key used to make this mutation retry-safe for the replay window. |
Request body · application/json
| Field | Type | Required | Description |
|---|
collection_type | string | optional | manual, automated |
color | string | optional | |
description | string | optional | |
description_html | string | optional | |
icon | string | optional | |
image_alt_text | string | optional | |
image_url | string | optional | |
name | string | required | |
parent_category_id | string | optional | |
seo_description | string | optional | |
seo_title | string | optional | |
show_in_navigation | boolean | optional | |
slug | string | optional | |
sort_order | integer | optional | |
status | string | optional | draft, published |
tax_code | string | optional | |
type | string | optional | product, service, addon |
Returns · 200
| Field | Type | Required | Description |
|---|
data | CategoryObject | required | |
data.collection_type | string | optional | |
data.color | string | optional | |
data.created_at | string | optional | |
data.description | string | optional | |
data.description_html | string | optional | |
data.icon | string | optional | |
data.id | string | required | |
data.image_alt_text | string | optional | |
Errors 400401403404409422429500
curl https://api.getmeonline.io/v1/categories \
-X POST \
-H "Authorization: Bearer $GETME_API_KEY" \
-H "Idempotency-Key: idem_1234567890abcdef" \
-H "Content-Type: application/json" \
-d '{
"collection_type": "manual",
"color": "color",
"description": "description",
"description_html": "description_html",
"icon": "icon",
"image_alt_text": "image_alt_text"
}'