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