file
POST /user/{id}/file
POST
/user/{id}/file
Uploads an avatar file for a user.
Authorizations
Parameters
Path Parameters
id
required
string
User Id
Example
Request Body
object
avatar
required
Avatar image file. Allowed file types: PNG, JPG, WEBP, SVG
string format: binary
Responses
200
object
avatar
required
string
bio
required
string
collectionId
required
string
collectionName
required
string
created
required
string
email
required
string
emailVisibility
required
boolean
id
required
string
token
required
string
updated
required
string
username
required
string
verified
required
boolean
Examples
Success
400
object
message
required
string
detail
required
Array<object>
object
code
string
minimum
integer
type
string
inclusive
boolean
exact
boolean
message
string
path
Array<string>
Examples
Exception
404
object
message
required
string
detail
required
object
code
required
integer
message
required
string
data
required
object
Examples
Exception