createByUserId

fun Blocks.createByUserId(    userId: Long,     includeEntities: Boolean? = null,     skipStatus: Boolean? = null,     vararg options: Option): JsonObjectApiAction<User>

Blocks the specified user from following the authenticating user. In addition the blocked user will not show in the authenticating users mentions or timeline (unless retweeted by another user). If a follow or friend relationship exists it is destroyed.

The URL pattern /version/block/create/:screen_name_or_user_id.format is still accepted but not recommended. As a sequence of numbers is a valid screen name we recommend using the screen_name or user_id parameter instead.

Twitter API reference

Receiver

Blocks endpoint instance.

Return

JsonObjectApiAction for User model.

See also

Parameters

userId

Required. The ID of the potentially blocked user. Helpful for disambiguating when a valid user ID is also a valid screen name.

includeEntities

The entities node will not be included when set to false.

skipStatus

When set to either true, t or 1 statuses will not be included in the returned user objects.

options

Optional. Custom parameters of this request.