Upload a new user avatar image.
Upload a new user avatar image.
application/json
Request Body required
avatarData bytes required
The data for the new avatar image.
Responses
- 200
- default
OK
application/json
Schema
Example (from schema)
Schema
avatarUrl string
The URL of the uploaded avatar image.
{
"avatarUrl": "string"
}
Default error response
application/json
Schema
Example (from schema)
Schema
- Array [
- ]
code int32
The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].
message string
A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.
details object[]
A list of messages that carry the error details. There is a common set of message types for APIs to use.
@type string
The type of the serialized message.
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Loading...