Update a badge
POST/badge/:badgeId
Update a badge
Request
Path Parameters
badgeId badgeIdrequired
The badgeId to update
Responses
- 200
- 401
- 404
- default
Badge successfully updated
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
id badgeId (string)
Unique identifier for Badge
power
object[]
schema_type int64
value int64
project projectId (string)
Unique identifier for Project
max_lvl int64
{
"id": "beajWS6zK",
"power": [
{
"schema_type": 0,
"value": 0
}
],
"project": "p2Duhf5N6",
"max_lvl": 0
}
Unauthorized
- application/json
- Schema
- Example (from schema)
- Example
Schema
error string
{
"error": "string"
}
{
"error": "Unauthorized access"
}
NotFound
- application/json
- Schema
- Example (from schema)
- Example
Schema
error string
{
"error": "string"
}
{
"error": "A mandatory item was not found"
}
Unexpected error
- application/json
- Schema
- Example (from schema)
- Example
Schema
error string
{
"error": "string"
}
{
"error": "An unexpected error occured"
}
Loading...