public static function patchTags($ids, $tag)
    {
        assert(is_array($ids) || $ids === 'all');
        $fields = [
            'action' => 'reassign_tag',
            'data' => [
                'subscribers' => $ids,
                'tag' => $tag
            ]
        ];
        Yii::$app->mailtankClient->sendRequest(
            self::ENDPOINT,
            json_encode($fields),
            'patch'
        );

        return true;
    }