modify activities api