文章 Update Friendship REST 端点

URLs

PUT api/v1/users/{requestorid}/friends/{requesteeid}.xml (or .json)

UPDATE a friendship for a user by user id.

PUT api/v1/users/{requestorname}/friends/{requesteename}.xml (or .json)

UPDATE a friendship for a user by username.

请求参数

名称

类型

描述

必需

默认值

选项

RequestorId

int?

Either RequestorId or RequestorName is required.

否

RequestorName

string

Either RequestorId or RequestorName is required.

否

RequesteeId

int?

Either RequesteeId or RequesteeName is required.

否

RequesteeName

string

Either RequesteeId or RequesteeName is required.

否

FriendshipState

string

Options include NotSpecified, Pending, Approved.

是