public function attachMany($id, array $attachments)
    {
        $request = [];
        $request['issue'] = [
            'id' => $id,
            'uploads' => $attachments,
        ];

        return $this->put('/issues/'.$id.'.json', json_encode($request));
    }
public function attachMany($id, array $attachments)
    {
        $request = [];
        $request['issue'] = [
            'id' => $id,
            'uploads' => $attachments,
        ];

        return $this->put('/issues/'.$id.'.json', json_encode($request));
    }
public function attachMany ( $ id , array $ attachments ) { $ request = [ ] ; $ request [ 'issue' ] = [ 'id' => $ id , 'uploads' => $ attachments , ] ; return $ this -> put ( '/issues/' . $ id . '.json' , json_encode ( $ request ) ) ; }
Attach files to an issue. Requires authentication.

@see http://www.redmine.org/projects/redmine/wiki/Rest_Issues#Updating-an-issue

@param string $id          the issue number
@param array  $attachments [
['token' => '...', 'filename' => '...', 'content_type' => '...'],
['token' => '...', 'filename' => '...', 'content_type' => '...']
]

@return bool|string
Attach files to an issue . Requires authentication .