Fixed API REst calls to PUT