Fixed REST call to add agreement