Update materials API