destroy By User Id
fun Friendships.destroyByUserId(userId: Long, vararg options: Option): JsonObjectApiAction<User>
Content copied to clipboard
Allows the authenticating user to unfollow the user specified in the ID parameter. Returns the unfollowed user when successful. Returns a string describing the failure condition when unsuccessful. Actions taken in this method are asynchronous. Changes will be eventually consistent.
Receiver
Friendships endpoint instance.
Return
JsonObjectApiAction for User model.
See also
Parameters
user Id
The ID of the user to unfollow.
options
Optional. Custom parameters of this request.