cURL
curl --request PUT \ --url https://api.g2cplatform.com/v2/categories/{categoryId}/subcategories/{subcategoryId} \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <api-key>' \ --data ' { "name": "<string>", "description": "<string>", "status": "active", "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 } }
Update details of an existing subcategory
API key for authenticating requests. Include in X-API-Key header.
Parent category identifier
Subcategory identifier
2 - 100
500
active
inactive
archived
Show child attributes
Subcategory updated successfully