GET /api/v2/categories/{id} HTTP/1.1 Host: api.ethos.network Accept: */*
Successful response
{ "id": 1, "slug": "text", "name": "text", "description": "text", "showOnLeaderboard": true, "showInDailyService": true, "bannerImageUrl": "https://example.com", "userCount": 1 }
DELETE /api/v2/categories/{categoryId} HTTP/1.1 Host: api.ethos.network Authorization: Bearer YOUR_SECRET_TOKEN Accept: */*
50
0
GET /api/v2/categories/{categoryId}/users HTTP/1.1 Host: api.ethos.network Accept: */*
{ "users": [ { "id": 1, "profileId": 1, "displayName": "text", "username": "text", "avatarUrl": "https://example.com", "description": "text", "score": 1, "status": "ACTIVE", "userkeys": [ "text" ], "xpTotal": 1, "xpStreakDays": 1, "stats": { "review": { "received": { "negative": 1, "neutral": 1, "positive": 1 } }, "vouch": { "given": { "amountWeiTotal": 1, "count": 1 }, "received": { "amountWeiTotal": 1, "count": 1 } } }, "addedAt": "text" } ], "total": 1 }
DELETE /api/v2/categories/{categoryId}/users HTTP/1.1 Host: api.ethos.network Authorization: Bearer YOUR_SECRET_TOKEN Accept: */*
GET /api/v2/categories HTTP/1.1 Host: api.ethos.network Accept: */*
{ "categories": [ { "id": 1, "slug": "text", "name": "text", "description": "text", "showOnLeaderboard": true, "showInDailyService": true, "bannerImageUrl": "https://example.com", "userCount": 1 } ], "total": 1 }
POST /api/v2/categories HTTP/1.1 Host: api.ethos.network Authorization: Bearer YOUR_SECRET_TOKEN Content-Type: application/json Accept: */* Content-Length: 140 { "slug": "text", "name": "text", "description": "text", "showOnLeaderboard": true, "showInDailyService": true, "bannerImageUrl": "https://example.com" }
PUT /api/v2/categories/{categoryId} HTTP/1.1 Host: api.ethos.network Authorization: Bearer YOUR_SECRET_TOKEN Content-Type: application/json Accept: */* Content-Length: 140 { "slug": "text", "name": "text", "description": "text", "showOnLeaderboard": true, "showInDailyService": true, "bannerImageUrl": "https://example.com" }
POST /api/v2/categories/{categoryId}/users HTTP/1.1 Host: api.ethos.network Authorization: Bearer YOUR_SECRET_TOKEN Content-Type: application/json Accept: */* Content-Length: 15 { "userIds": [ 1 ] }
POST /api/v2/categories/{categoryId}/bulk-import HTTP/1.1 Host: api.ethos.network Authorization: Bearer YOUR_SECRET_TOKEN Content-Type: application/json Accept: */* Content-Length: 24 { "twitterUrls": [ "text" ] }
{ "total": 1, "added": 1, "alreadyInCategory": 1, "notFound": 1, "invalid": 1, "duplicates": 1, "errors": [ { "url": "text", "reason": "text" } ] }