Skip to main content
POST
/
product-categories
cURL
curl -X POST https://api.neuraldraft.io/v1/product-categories \
  -H "Authorization: Bearer ndsk_live_yourkey" \
  -H "Content-Type: application/json" \
  -d '{"name":"Blocks","parent_id":4}'
{
  "id": 4,
  "name": "Studio essentials",
  "slug": "studio-essentials",
  "description": "<string>",
  "image": "<string>",
  "parent_id": 123,
  "sort_order": 0,
  "is_active": true,
  "children": "<array>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.neuraldraft.io/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Project API key. Pass as Authorization: Bearer ndsk_live_.... Manage keys via /projects/me/api-keys. Test-mode keys use the ndsk_test_ prefix.

Body

application/json
name
string
slug
string
description
string
image
string<uri>
parent_id
integer | null
sort_order
integer
is_active
boolean

Response

Created.

id
integer
required
Example:

4

name
string
required
Example:

"Studio essentials"

slug
string
required
Example:

"studio-essentials"

description
string | null
image
string<uri> | null
parent_id
integer | null
sort_order
integer
default:0
is_active
boolean
default:true
children
array