cURL
curl --request POST \ --url https://api.g2cplatform.com/v2/categories/{categoryId}/subcategories \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <api-key>' \ --data ' { "name": "<string>", "description": "<string>", "metadata": {} } '
{ "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "name": "<string>", "categoryId": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "status": "active", "createdAt": "2023-11-07T05:31:56Z", "updatedAt": "2023-11-07T05:31:56Z", "description": "<string>", "metadata": {}, "statistics": { "objectCount": 123 } }
Create a new subcategory within a category
API key for authenticating requests. Include in X-API-Key header.
Parent category identifier
2 - 100
500
Show child attributes
Subcategory created successfully
active
inactive
archived