文章 Update User Avatar REST 端点

URLs

PUT api/v1/users/{userid}/avatar.xml (or .json)

UPDATE a users avatar.

请求参数

名称

类型

描述

必需

默认值

选项

UserId

int

User ID.

AvatarUrl

string

URL to the avatar image.

FileData

Byte[]

Data for the avatar image.

FileName

string

Filename of temporary file for the avatar image.

FileUploadContext

string

UploadContext of temporary file for the avatar image.