Add remove resource in API