文章 Create Achievement Achievement REST 端点

URLs

POST api/v1/achievement.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. 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.