643 matches
75 actions
Discourse API Documentation
75 actions
- Add group membersPUTv1.0.0
- Anonymize a userPUTv1.0.0
- Bookmark topicPUTv1.0.0
- Change passwordPUTv1.0.0
- Create a groupPOSTv1.0.0
- Create an invitePOSTv1.0.0
- Create backupPOSTv1.0.0
- Create badgePOSTv1.0.0
- Create topic timerPOSTv1.0.0
- Creates a categoryPOSTv1.0.0
- Creates a new topic, a new post, or a private messagePOSTv1.0.0
- Creates a tag groupPOSTv1.0.0
- Creates a userPOSTv1.0.0
- Delete a groupDELETEv1.0.0
- delete a single postDELETEv1.0.0
- Delete a userDELETEv1.0.0
- Delete badgeDELETEv1.0.0
- Get a groupGETv1.0.0
- Get a list of private messages for a userGETv1.0.0
- Get a list of private messages sent for a userGETv1.0.0
- Get a list of tag groupsGETv1.0.0
- Get a list of tagsGETv1.0.0
- Get a list of user actionsGETv1.0.0
- Get a list of usersGETv1.0.0
- Get a public list of usersGETv1.0.0
- Get a single tag groupGETv1.0.0
- Get a single topicGETv1.0.0
- Get a single user by usernameGETv1.0.0
- Get a specific tagGETv1.0.0
- Get a user by external_idGETv1.0.0
- Get a user by idGETv1.0.0
- Get a user by identity provider external IDGETv1.0.0
- Get email addresses belonging to a userGETv1.0.0
- Get site infoGETv1.0.0
- Get specific posts from a topicGETv1.0.0
- Get the latest topicsGETv1.0.0
- Get the notifications that belong to the current userGETv1.0.0
- Get the top topics filtered by periodGETv1.0.0
- Get topic by external_idGETv1.0.0
- Invite to topicPOSTv1.0.0
- Like a post and other actionsPOSTv1.0.0
- List backupsGETv1.0.0
- List badgesGETv1.0.0
- List badges for a userGETv1.0.0
- List group membersGETv1.0.0
- List groupsGETv1.0.0
- List latest posts across topicsGETv1.0.0
- List replies to a postGETv1.0.0
- List topicsGETv1.0.0
- Lock a post from being editedPUTv1.0.0
- Log a user outPOSTv1.0.0
- Mark notifications as readPUTv1.0.0
- Refresh gravatarPOSTv1.0.0
- Remove a topicDELETEv1.0.0
- Remove group membersDELETEv1.0.0
- Retrieve a single postGETv1.0.0
- Retrieves a list of categoriesGETv1.0.0
- Search for a termGETv1.0.0
- Send password reset emailPOSTv1.0.0
- Set notification levelPOSTv1.0.0
- Show categoryGETv1.0.0
- Silence a userPUTv1.0.0
- Suspend a userPUTv1.0.0
- Update a groupPUTv1.0.0
- Update a single postPUTv1.0.0
- Update a topicPUTv1.0.0
- Update a userPUTv1.0.0
- Update avatarPUTv1.0.0
- Update badgePUTv1.0.0
- Update emailPUTv1.0.0
- Update tag groupPUTv1.0.0
- Update the status of a topicPUTv1.0.0
- Update topic timestampPUTv1.0.0
- Update usernamePUTv1.0.0
- Updates a categoryPUTv1.0.0
Social/Discourse API Documentation
Update badge
v1.0.0Input
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
{
"type": "object",
"properties": {
"badge_type_id": {
"type": "integer",
"description": "The ID for the badge type. 1 for Gold, 2 for Silver,\n3 for Bronze."
},
"id": {
"type": "integer"
},
"name": {
"type": "string",
"description": "The name for the new badge."
}
},
"required": [
"badge_type_id",
"id",
"name"
],
"additionalProperties": false
}Output
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
- 46
- 47
- 48
- 49
- 50
- 51
- 52
- 53
- 54
- 55
- 56
- 57
- 58
- 59
- 60
- 61
- 62
- 63
- 64
- 65
- 66
- 67
- 68
- 69
- 70
- 71
- 72
- 73
- 74
- 75
- 76
- 77
- 78
- 79
- 80
- 81
- 82
- 83
- 84
- 85
- 86
- 87
- 88
- 89
- 90
- 91
- 92
- 93
- 94
- 95
- 96
- 97
- 98
- 99
- 100
- 101
- 102
- 103
- 104
- 105
- 106
- 107
- 108
- 109
- 110
- 111
- 112
- 113
- 114
- 115
- 116
- 117
- 118
- 119
- 120
- 121
- 122
- 123
- 124
- 125
- 126
- 127
- 128
- 129
- 130
- 131
- 132
- 133
{
"required": [
"badge",
"badge_types"
],
"properties": {
"badge": {
"type": "object",
"required": [
"allow_title",
"auto_revoke",
"badge_grouping_id",
"badge_type_id",
"description",
"enabled",
"grant_count",
"icon",
"id",
"image_url",
"listable",
"long_description",
"manually_grantable",
"multiple_grant",
"name",
"query",
"show_posts",
"slug",
"system",
"target_posts",
"trigger"
],
"properties": {
"allow_title": {
"type": "boolean"
},
"auto_revoke": {
"type": "boolean"
},
"badge_grouping_id": {
"type": "integer"
},
"badge_type_id": {
"type": "integer"
},
"description": {
"type": "string"
},
"enabled": {
"type": "boolean"
},
"grant_count": {
"type": "integer"
},
"icon": {
"type": "string"
},
"id": {
"type": "integer"
},
"image_url": {
"type": [
"string",
"null"
]
},
"listable": {
"type": "boolean"
},
"long_description": {
"type": "string"
},
"manually_grantable": {
"type": "boolean"
},
"multiple_grant": {
"type": "boolean"
},
"name": {
"type": "string"
},
"query": {
"type": [
"string",
"null"
]
},
"show_posts": {
"type": "boolean"
},
"slug": {
"type": "string"
},
"system": {
"type": "boolean"
},
"target_posts": {
"type": "boolean"
},
"trigger": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
},
"badge_types": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"name",
"sort_order"
],
"properties": {
"id": {
"type": "integer"
},
"name": {
"type": "string"
},
"sort_order": {
"type": "integer"
}
},
"additionalProperties": false
}
}
},
"additionalProperties": false
}