Don't we have an API for this now? Although I guess we should leave this in and make the API call a separate work item. At least it's in one place.