cURL
curl --request PUT \ --url https://api.g2cplatform.com/v2/categories/{categoryId} \ --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>", "status": "active", "createdAt": "2023-11-07T05:31:56Z", "updatedAt": "2023-11-07T05:31:56Z", "description": "<string>", "metadata": {}, "statistics": { "subcategoryCount": 123, "objectCount": 123 }, "subcategories": [ { "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 category
API key for authenticating requests. Include in X-API-Key header.
Category identifier
2 - 100
500
active
inactive
archived
Show child attributes
Category updated successfully
List of subcategories within this category