updateByUserId

fun Friendships.updateByUserId(    userId: Long,     device: Boolean? = null,     retweets: Boolean? = null,     vararg options: Option): JsonObjectApiAction<Relationship>

Enable or disable Retweets and device notifications from the specified user.

Twitter API reference

Receiver

Friendships endpoint instance.

Return

JsonObjectApiAction for Relationship model.

Parameters

userId

The ID of the user being followed.

device

Enable/disable device notifications from the target user.

retweets

Enable/disable Retweets from the target user.

options

Optional. Custom parameters of this request.