文章 Create Point Transaction REST 端点

URLs

POST api/v1/pointtransactions.xml (or .json)

请求参数

名称

类型

描述

必需

默认值

选项

Description

string

Short explanation of why points are being awarded

UserId

int

Which user points are being awarded to

Value

int

Amount of points being awarded (or removed if this number is negative)

ContentId

Guid

Identifier of content related to this point transaction

ContentTypeId

Guid

Content Type identifier of content related to this point transaction

CreatedDate

DateTime

Date and time the point transaction was created. The current time will be used if not specified.