文章 Update Achievement Achievement REST 端点

URLs

PUT api/v1/achievement/{id}.xml (or .json)

请求参数

名称

类型

描述

必需

默认值

选项

Id

Guid

Id of the Achievement

Title

string

Title of the Achievement

Criteria

string

Criteria to earn the Achievement

BadgeIconName

string

Name of the file representing the badge for the Achievement

BadgeIconData

Byte[]

Data of the file representing the badge for the Achievement. If BadgeIconName is specified, either BadgeIconData or BadgeIconUploadContext is required.

BadgeIconUploadContext

string

Upload context of the file representing the badge for the Achievement. Either BadgeIconData or BadgeIconUploadContext is required.

Enabled

bool

Enabled state of the achievement, whether it can be earned.