Add argument to upload-api:replace if exist