The manage DM blocks endpoints enable you to block or unblock a specified account on behalf of an authenticated user. For these endpoints, there are two POST methods available:
/2/users/:id/dm/block: Allows you to block an account
/2/users/:id/dm/unblock: Allows you to unblock an account