StatsHub Docs
APIEndpoint referenceCategory

/category/{id}

PUT
/api/v2/category/{id}

Path Parameters

id*integer
Formatint64

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

curl -X PUT "https://example.com/api/v2/category/0" \  -H "Content-Type: application/json" \  -d '{    "alpha2": "string",    "flag": "string",    "id": 0,    "name": "string",    "slug": "string"  }'
{  "$schema": "https://example.com/schemas/MessageEnvelope.json",  "message": "string"}