List badges for a user
GET/user-badges/:username.json
List badges for a user
Request
Path Parameters
username stringrequired
Responses
- 200
success response
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
- Array [
- ]
- Array [
- ]
- Array [
- ]
badges object[]
id integerrequired
name stringrequired
description stringrequired
grant_count integerrequired
allow_title booleanrequired
multiple_grant booleanrequired
icon stringrequired
image_url stringnullrequired
listable booleanrequired
enabled booleanrequired
badge_grouping_id integerrequired
system booleanrequired
slug stringrequired
manually_grantable booleanrequired
badge_type_id integerrequired
badge_types object[]
id integerrequired
name stringrequired
sort_order integerrequired
granted_bies object[]
id integerrequired
username stringrequired
name stringrequired
avatar_template stringrequired
flair_name stringnullrequired
admin booleanrequired
moderator booleanrequired
trust_level integerrequired
user_badges object[]required
id integerrequired
granted_at stringrequired
grouping_position integerrequired
is_favorite stringnullrequired
can_favorite booleanrequired
badge_id integerrequired
granted_by_id integerrequired
{
"badges": [
{
"id": 0,
"name": "string",
"description": "string",
"grant_count": 0,
"allow_title": true,
"multiple_grant": true,
"icon": "string",
"listable": true,
"enabled": true,
"badge_grouping_id": 0,
"system": true,
"slug": "string",
"manually_grantable": true,
"badge_type_id": 0
}
],
"badge_types": [
{
"id": 0,
"name": "string",
"sort_order": 0
}
],
"granted_bies": [
{
"id": 0,
"username": "string",
"name": "string",
"avatar_template": "string",
"admin": true,
"moderator": true,
"trust_level": 0
}
],
"user_badges": [
{
"id": 0,
"granted_at": "string",
"grouping_position": 0,
"can_favorite": true,
"badge_id": 0,
"granted_by_id": 0
}
]
}
Loading...