public ChangesetInfo comment ( long id , String text ) { if ( text . isEmpty ( ) ) { throw new IllegalArgumentException ( "Text must not be empty" ) ; } SingleElementHandler < ChangesetInfo > handler = new SingleElementHandler <> ( ) ; String apiCall = CHANGESET + "/" + id + "/comment?text=" + urlEncodeText ( text ) ; osm . makeAuthenticatedRequest ( apiCall , "POST" , new ChangesetParser ( handler ) ) ; return handler . get ( ) ; }
Add a comment to the given changeset . The changeset must already be closed . Adding a comment to a changeset automatically subscribes the user to it .