- Returning.AI
- Auth
- User
- Server
- Category
- Role
- Channel
- Language Setting
- Leaderboard
- Badge
- Gamification
- Api Token
- Custom Userfields
- Integration
delete badge
Developing
DELETE
/badges/{id}
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Path Params
id
string
required
Example:
84845081-98fd-46f3-96aa-1032174e58a5
Body Params application/json
serverId
string
required
Example
{
"serverId": "{{serverId}}"
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request DELETE 'https://api.returning.ai/api/v1/badges/84845081-98fd-46f3-96aa-1032174e58a5' \
--header 'Content-Type: application/json' \
--data-raw '{
"serverId": ""
}'
Responses
🟢200Success
application/json
Body
meta
object
required
success
boolean
required
message
string
required
devMessage
string
required
body
object
required
Example
{
"meta": {
"success": true,
"message": "Badge has been deleted successfully",
"devMessage": "Badge has been deleted successfully"
},
"body": {}
}
Modified at 2024-07-30 05:36:35