Avatars
Create avatar asset
Create a new asset for an avatar.
AuthorizationBearer <token>
Bearer token authentication for user sessions
In: header
Path Parameters
avatar_idinteger
id?integer
versioninteger
enginestring
platformstring
url?string
Format
urihash?string
size?integer
Response Body
application/json
application/json
application/json
curl -X PUT "https://nox.hactazia.fr/api/avatars/0/assets" \ -H "Content-Type: application/json" \ -d '{ "version": 0, "engine": "string", "platform": "string" }'{
"id": 0,
"version": 0,
"engine": "string",
"platform": "string",
"is_empty": true,
"url": "http://example.com",
"features": [
"string"
],
"hash": "string",
"size": 0
}{
"error": {
"message": "You are not logged in.",
"code": 7,
"status": 401
},
"data": null
}{
"error": {
"message": "{0} already exists with {1}.",
"code": 6,
"status": 409
},
"data": null
}