文章 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.

否